]> granicus.if.org Git - clang/commit
Implement AST classes for comments, a real parser for Doxygen comments and a
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 6 Jul 2012 00:28:32 +0000 (00:28 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 6 Jul 2012 00:28:32 +0000 (00:28 +0000)
commit8d3ba23f2d9e6c87794d059412a0808c9cbacb25
treec72c618faeffa1c098c4df33857bd12a72c62fb1
parent1838703fea568b394407b83d1055b4c7f52fb105
Implement AST classes for comments, a real parser for Doxygen comments and a
very simple semantic analysis that just builds the AST; minor changes for lexer
to pick up source locations I didn't think about before.

Comments AST is modelled along the ideas of HTML AST: block and inline content.

* Block content is a paragraph or a command that has a paragraph as an argument
  or verbatim command.
* Inline content is placed within some block.  Inline content includes plain
  text, inline commands and HTML as tag soup.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159790 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/CMakeLists.txt
include/clang/AST/Comment.h [new file with mode: 0644]
include/clang/AST/CommentLexer.h
include/clang/AST/CommentParser.h [new file with mode: 0644]
include/clang/AST/CommentSema.h [new file with mode: 0644]
include/clang/AST/CommentVisitor.h [new file with mode: 0644]
include/clang/AST/Makefile
include/clang/Basic/CommentNodes.td [new file with mode: 0644]
lib/ARCMigrate/CMakeLists.txt
lib/AST/ASTContext.cpp
lib/AST/CMakeLists.txt
lib/AST/Comment.cpp [new file with mode: 0644]
lib/AST/CommentDumper.cpp [new file with mode: 0644]
lib/AST/CommentLexer.cpp
lib/AST/CommentParser.cpp [new file with mode: 0644]
lib/AST/CommentSema.cpp [new file with mode: 0644]
lib/Analysis/CMakeLists.txt
lib/CodeGen/CMakeLists.txt
lib/Frontend/CMakeLists.txt
lib/Parse/CMakeLists.txt
lib/Rewrite/CMakeLists.txt
lib/Sema/CMakeLists.txt
lib/Serialization/CMakeLists.txt
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Core/CMakeLists.txt
lib/StaticAnalyzer/Frontend/CMakeLists.txt
unittests/AST/CommentLexer.cpp
unittests/AST/CommentParser.cpp [new file with mode: 0644]
utils/TableGen/TableGen.cpp