llvm-project/clang/tools
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
..
arcmt-test Remove dead include. 2013-06-26 12:49:58 +00:00
c-arcmt-test c-arcmt-test/Makefile: Fixup for LDFLAGS=-static on cygming, corresponding to r197116. 2013-12-12 06:37:12 +00:00
c-index-test Use -std=gnu89 in tools/c-index-test/CMakeLists.txt 2014-01-08 11:44:42 +00:00
clang-check Sort all the #include lines with LLVM's utils/sort_includes.py which 2014-01-07 11:51:46 +00:00
clang-format clang-format: Enable formatting for .proto and .protodevel files. 2014-01-21 15:40:01 +00:00
clang-format-vs clang-format vsix cmake build: use ${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR} 2013-12-05 17:49:58 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool [CMake] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 12:40:37 +00:00
driver [CMake] Deprecate CLANG_RUNTIME_OUTPUT_INTDIR and CLANG_LIBRARY_OUTPUT_INTDIR. 2014-01-19 13:00:01 +00:00
libclang Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
scan-build [analyzer] Files with .c extensions are still C++ files if the compiler is CXX. 2014-01-07 21:39:51 +00:00
scan-view [analyzer] scan-view: don't ever serve absolute paths. 2013-04-29 17:23:06 +00:00
CMakeLists.txt CMake: enable building the clang-format vs plugin 2013-12-03 18:02:51 +00:00
Makefile Re-add clang-check to the Makefile build. 2013-08-22 16:12:04 +00:00