diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-11 22:11:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-08-11 22:11:07 +0000 |
commit | 2f361f76db11d874da12a2f8c2dedf0e81f62fe2 (patch) | |
tree | 9dccabd78ab660baaef5cb960716bbd843e1d7e9 /tools/clang-check | |
parent | 9febd243459dca68f48e886ecc1611613582ce7d (diff) |
Modify behavior of -ast-dump-lookups: if -ast-dump is not also provided, dump
anyway. If -ast-dump *is* also provided, then dump the AST declarations as well
as the lookup results. This is invaluable for cross-correlating the lookup
information with the declarations actually found.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-check')
-rw-r--r-- | tools/clang-check/ClangCheck.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/clang-check/ClangCheck.cpp b/tools/clang-check/ClangCheck.cpp index df3b4e0d95..27e69c2603 100644 --- a/tools/clang-check/ClangCheck.cpp +++ b/tools/clang-check/ClangCheck.cpp @@ -184,7 +184,8 @@ public: if (ASTList) return clang::CreateASTDeclNodeLister(); if (ASTDump) - return clang::CreateASTDumper(ASTDumpFilter); + return clang::CreateASTDumper(ASTDumpFilter, /*DumpDecls*/ true, + /*DumpLookups*/ false); if (ASTPrint) return clang::CreateASTPrinter(&llvm::outs(), ASTDumpFilter); return llvm::make_unique<clang::ASTConsumer>(); |