-
- Downloads
DeclPrinter: add terse output mode and lots of tests
Add a flag PrintingPolicy::DontRecurseInDeclContext to provide "terse" output from DeclPrinter. The motivation is to use DeclPrinter to print declarations in user-friendly format, without overwhelming user with inner detail of the declaration being printed. Also add many tests for DeclPrinter. There are quite a few things that we print incorrectly: search for WRONG in DeclPrinterTest.cpp -- and these tests check our output against incorrect output, so that we can fix/refactor/rewrite the DeclPrinter later. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162245 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/PrettyPrinter.h 4 additions, 1 deletioninclude/clang/AST/PrettyPrinter.h
- lib/AST/DeclPrinter.cpp 3 additions, 0 deletionslib/AST/DeclPrinter.cpp
- unittests/AST/CMakeLists.txt 2 additions, 1 deletionunittests/AST/CMakeLists.txt
- unittests/AST/DeclPrinterTest.cpp 1200 additions, 0 deletionsunittests/AST/DeclPrinterTest.cpp
- unittests/AST/Makefile 5 additions, 2 deletionsunittests/AST/Makefile
Loading
Please register or sign in to comment