llvm-project/clang/include/clang
Alp Toker a2794f9f36 Introduce and use Decl::getAsFunction() to simplify templated function checks
Lift the getFunctionDecl() utility out of the parser into a general
Decl::getAsFunction() and use it to simplify other parts of the implementation.

Reduce isFunctionOrFunctionTemplate() to a simple type check that works the
same was as the other is* functions and move unwrapping of shadowed decls to
callers so it doesn't get run twice.

Shuffle around canSkipFunctionBody() to reduce virtual dispatch on ASTConsumer.
There's no need to query when we already know the body can't be skipped.

llvm-svn: 199794
2014-01-22 07:29:52 +00:00
..
ARCMigrate Objective-C migrator. Simplify migrator option 2013-10-02 17:08:12 +00:00
AST Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
ASTMatchers Sort all the #include lines with LLVM's utils/sort_includes.py which 2014-01-07 11:51:46 +00:00
Analysis [analyzer] Add a CFG node for the allocator call in a C++ 'new' expression. 2014-01-13 17:59:19 +00:00
Basic Add basic checking for returning null from functions/methods marked 'returns_nonnull'. 2014-01-22 06:10:28 +00:00
CodeGen Rename FunctionProtoType accessors from 'arguments' to 'parameters' 2014-01-20 20:26:09 +00:00
Config use DEFAULT_SYSROOT 2012-04-16 04:16:43 +00:00
Driver clang-cl: make /Zp a Joined option (PR18503) 2014-01-22 03:23:35 +00:00
Edit ObjectiveC migrator: When doing migration, migrator must suggest 2013-10-01 21:16:29 +00:00
Format clang-format: Better support and testing for protocol buffers. 2014-01-19 09:04:08 +00:00
Frontend Implement a new -fstandalone-debug option. rdar://problem/15685848 2014-01-07 01:19:08 +00:00
FrontendTool
Index Documentation parsing: move comment-to-XML conversion routines to libIndex 2013-11-13 22:16:51 +00:00
Lex Correct underlying integer type of enum TokenKind 2014-01-06 12:54:51 +00:00
Parse Remove some hard-coded specialness for thread-safety attributes from the parser, and made it more declarative. If an attribute is allowed to appear on a function definition when late parsed, it can now use the FunctionDefinition attribute subject. It's treated as a FunctionDecl for most purposes, except it also gets exposed on the AttributeList so that it can be used while parsing. 2014-01-20 17:18:35 +00:00
Rewrite Rewriter: Output RewriteRope contents efficiently 2013-12-02 17:02:49 +00:00
Sema Add basic checking for returning null from functions/methods marked 'returns_nonnull'. 2014-01-22 06:10:28 +00:00
Serialization [Serialization] In ASTReader::getInputFile record it when we didn't find the file to avoid looking it up again. 2014-01-08 19:13:34 +00:00
StaticAnalyzer Change CallEvent to use ArrayRef<> interface to get formal parameters of callee. 2014-01-17 07:15:31 +00:00
Tooling Sort all the #include lines with LLVM's utils/sort_includes.py which 2014-01-07 11:51:46 +00:00
CMakeLists.txt Instantiate dependent attributes when instantiating templates. 2012-01-20 22:37:06 +00:00
Makefile make: fix installation of generated header files 2012-02-01 22:23:31 +00:00