summaryrefslogtreecommitdiffstats
path: root/clang/unittests/AST/StmtPrinterTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename AST node matchers to match the AST node names directly. Part of this ↵Aaron Ballman2015-09-171-2/+2
| | | | | | rename also splits recordDecl() (which used to match CXXRecordDecl) into recordDecl() (that matches RecordDecl) and cxxRecordDecl (that matches CXXRecordDecl). Also adds isStruct(), isUnion(), and isClass() narrowing matchers for RecordDecl objects. llvm-svn: 247885
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix Reviewers: dblaikie Reviewed By: dblaikie Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D8926 llvm-svn: 234678
* Lex: Use the correct types for MS integer suffixesDavid Majnemer2014-06-211-2/+4
| | | | | | | | | | | | | | | | Something went wrong with r211426, it is an older version of this code and should not have been committed. It was reverted with r211434. Original commit message: We didn't properly implement support for the sized integer suffixes. Suffixes like i16 were essentially ignored instead of mapping them to the appropriately sized integer type. This fixes PR20008. Differential Revision: http://reviews.llvm.org/D4132 llvm-svn: 211441
* Revert "Lex: Use the correct types for MS integer suffixes"Rafael Espindola2014-06-211-4/+2
| | | | | | | | | This reverts commit r211426. This broke the arm bots. The crash can be reproduced on X86 by running. ./bin/clang -cc1 -fsyntax-only -verify -fms-extensions ~/llvm/clang/test/Lexer/ms-extensions.c -triple arm-linux llvm-svn: 211434
* Lex: Use the correct types for MS integer suffixesDavid Majnemer2014-06-211-2/+4
| | | | | | | | | | | | We didn't properly implement support for the sized integer suffixes. Suffixes like i16 were essentially ignored instead of mapping them to the appropriately sized integer type. This fixes PR20008. Differential Revision: http://reviews.llvm.org/D4132 llvm-svn: 211426
* Removing an "if (this == nullptr)" check from two print methods. The conditionRichard Trieu2014-06-091-0/+1
| | | | | | | will never be true in a well-defined context. The checking for null pointers has been moved into the caller logic so it does not rely on undefined behavior. llvm-svn: 210498
* [C++11] Use 'nullptr'. Unittests edition.Craig Topper2014-06-081-1/+1
| | | | llvm-svn: 210423
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-071-1/+2
| | | | | | This compiles cleanly with lldb/lld/clang-tools-extra/llvm. llvm-svn: 203279
* Add a StmtPrinter test for implicit and explicit conversion operator calls.Benjamin Kramer2014-02-261-5/+51
| | | | | | Put back a comment that I removed too aggressively. llvm-svn: 202255
* unittests: explicit stringify StringRefs for conversionSaleem Abdulrasool2014-01-251-3/+4
| | | | | | | | | When clang is built outside of the LLVM tree (against a corresponding version), there is no definition providing for operator<<(std::ostream &, StringRef) which is required for the assertion routines in google-test tests. Avoid the compilation failure by explicitly stringifying the StringRef prior to use. llvm-svn: 200096
* Remove out-of-date comment.Richard Smith2012-11-291-3/+0
| | | | llvm-svn: 168957
* ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Remove i128 ↵NAKAMURA Takumi2012-11-291-14/+2
| | | | | | stuff. Conditioning-out in macro argument was not accepted on MS cl.exe. llvm-svn: 168867
* ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Suppress i128 ↵NAKAMURA Takumi2012-11-291-4/+12
| | | | | | | | | according to r168856, for now. I think "i128", that I conditioned out, could be completely removed. MS Compiler doesn't accept i128. We can assume no one would use i128. llvm-svn: 168865
* unittests/AST/StmtPrinterTest.cpp: Suppress a LP64-assumed test, ↵NAKAMURA Takumi2012-09-241-2/+0
| | | | | | | | "0x100000000i128 => 4294967296L", for now. LONG_MAX is 2147483647L on common 32 bit and LLP64 (Windows x64). llvm-svn: 164478
* As a followup for r164303, add some tests for printing literals that testDmitri Gribenko2012-09-231-0/+174
printing directly rather than through a complicated machinery of ObjC rewriter. llvm-svn: 164477
OpenPOWER on IntegriCloud