Commit Graph

9 Commits

Author SHA1 Message Date
Aaron Ballman fcc28fd8cc Re-commit r321223, which adds a printing policy to the ASTDumper.
This allows you to dump C++ code that spells bool instead of _Bool, leaves off the elaborated type specifiers when printing struct or class names, and other C-isms.

Fixes the -Wreorder issue and fixes the ast-dump-color.cpp test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321310 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-21 21:42:42 +00:00
Aaron Ballman 0752e75d9b Reverting r321223 and its follow-up commit because of failing bots due to Misc/ast-dump-color.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321229 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-20 23:17:29 +00:00
Aaron Ballman bfdec8d00b Add a printing policy to the ASTDumper.
This allows you to dump C++ code that spells bool instead of _Bool, leaves off the elaborated type specifiers when printing struct or class names, and other C-isms.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321223 91177308-0d34-0410-b5e6-96231b3b80d8
2017-12-20 22:04:54 +00:00
Richard Smith 0b5ac08821 Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313943 91177308-0d34-0410-b5e6-96231b3b80d8
2017-09-22 00:11:15 +00:00
Richard Smith d4c85a8040 Add template parameter depth and index to -ast-dump output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295689 91177308-0d34-0410-b5e6-96231b3b80d8
2017-02-21 02:04:03 +00:00
Akira Hatanaka 67b291aa1e Remove the temporary fix to the RUN line that was committed in r289924.
Also, dump the AST and run FileCheck to make sure the expected nodes are
created in the AST.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289986 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 20:25:11 +00:00
Nico Weber f55006b158 attempt to fix bots after r289914/r289919
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289924 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 05:03:44 +00:00
Akira Hatanaka 652c9fe88f Remove "-disable-llvm-optzns -verify" from the RUN line.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289919 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 04:18:53 +00:00
Akira Hatanaka 05ba9f09f5 [Sema] Fix handling of enumerators used as default arguments of lambda
expressions in a function or class template.

This patch makes the following changes:

- Create a DependentScopeDeclRefExpr for the default argument instead of
  a CXXDependentScopeMemberExpr.
- Pass CombineWithOuterScope=true so that the outer scope in which the
  enum is declared is searched for the instantiation of the enum. 

This is the first part of https://reviews.llvm.org/D23096. Fixes PR28795

rdar://problem/27535319


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289914 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-16 03:19:41 +00:00