summaryrefslogtreecommitdiffstats
path: root/clang/test/Tooling
Commit message (Collapse)AuthorAgeFilesLines
...
* [clang] Get rid of "%T" expansionsKuba Mracek2017-08-151-3/+4
| | | | | | | | | | The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
* [clang-diff] Add initial implementationAlex Lorenz2017-07-211-0/+78
| | | | | | | | | | | | | | This is the first commit for the "Clang-based C/C++ diff tool" GSoC project. ASTDiff is a new library that computes a structural AST diff between two ASTs using the gumtree algorithm. Clang-diff is a new Clang tool that will show the structural code changes between different ASTs. Patch by Johannes Altmanninger! Differential Revision: https://reviews.llvm.org/D34329 llvm-svn: 308731
* [test] Port clang tests to canonicalized booleansMichal Gorny2017-01-251-1/+1
| | | | | | | | | | | Use the new llvm_canonicalize_cmake_booleans() function to canonicalize booleans for lit tests. Replace the duplicate ENABLE_CLANG* variables used to hold canonicalized values with in-place canonicalization. Use implicit logic in Python code to avoid overrelying on exact 0/1 values. Differential Revision: https://reviews.llvm.org/D28529 llvm-svn: 293052
* Back out the test case for r266973 for now.Benjamin Kramer2016-04-211-2/+0
| | | | | | | It breaks on windows, need to investigate. It's not testing the important part of that change anyways. llvm-svn: 266975
* [Tooling] Inject -resource-dir instead of overwriting argv[0].Benjamin Kramer2016-04-211-0/+2
| | | | | | | | | This allows using a different standard library (the one from argv[0] in the compilation database) with the correct builtins. Differential Revision: http://reviews.llvm.org/D19356 llvm-svn: 266973
* int function without a return statement is invalid C++.Artyom Skrobov2015-11-272-2/+2
| | | | | | Changing the return type to void. llvm-svn: 254206
* Change the expectation for test/Tooling/ms-asm-no-target.cpp sinceAdrian Prantl2015-07-081-6/+6
| | | | | | | clang-check now initializes the available targets to support clang module containers. llvm-svn: 241656
* Remove "REQUIRES:shell" from tests. They work for me.NAKAMURA Takumi2014-11-041-1/+0
| | | | llvm-svn: 221269
* clang/test/Tooling: Remove mention to PR15590 out of a couple of tests. They ↵NAKAMURA Takumi2014-11-042-6/+0
| | | | | | are suppressed with another issue. llvm-svn: 221267
* clang/test/Tooling: [PR15590] Avoid backslashes in JSON. Should work on win32.NAKAMURA Takumi2014-11-043-15/+3
| | | | llvm-svn: 221266
* clang/test: Introduce the feature "staticanalyzer" for ↵NAKAMURA Takumi2014-07-161-0/+2
| | | | | | --enable-clang-static-analyzer. llvm-svn: 213140
* PR19601: testcase improvementArnaud A. de Grandmaison2014-05-011-1/+2
| | | | | | | | The test can now catch all cases: - no removal of the 'no-integrated-as' flag - bogus removal of the flag, like when the remove_if was not followed by an erase llvm-svn: 207787
* Adding a win32-targeted test into Tooling/multi-jobs.cpp, to make sure it ↵Artyom Skrobov2013-12-181-0/+1
| | | | | | | | doesn't get broken again (prompted by NAKAMURA Takumi) llvm-svn: 197596
* clang-check to ignore -no-integrated-as because certain drivers can't handle itArtyom Skrobov2013-12-131-3/+0
| | | | llvm-svn: 197229
* clang/test/Tooling/multi-jobs.cpp: Mark this as XFAIL:msvc for now. It has ↵NAKAMURA Takumi2013-11-181-0/+3
| | | | | | | | been failing since r194968. MSVC targeted drivers (*-win32) are incapable of invoking external assembler. llvm-svn: 194992
* Ignore test Inputs globally and remove redundant lit.local.cfg filesAlp Toker2013-11-151-1/+0
| | | | | | | | | | By adding a default config.excludes pattern we can avoid individual suppressions in subdirectories. This matches LLVM's lit.cfg which also excludes a few other common non-test filenames for consistency. llvm-svn: 194814
* Improve the missing ASM parser test for MS-style assemblyAlp Toker2013-11-081-0/+13
| | | | | | | | | | | | It's better to test clang-check rather than the internal c-index-test utility. Also adds a target so we can remove the XFAILs. Thanks to Richard Barton for spotting the test failure on ARM. Test originally from r193685. llvm-svn: 194249
* Fixed replacements for files with relative paths are not applied.Ariel J. Bernal2013-10-011-0/+10
| | | | | | | | Replacements were no applied when using a compilation database with paths in the compilation command relative to the compile directory. This patch makes those paths abosulte. llvm-svn: 191776
* Simplify now that llvm::sys::current_path checks $PWD.Rafael Espindola2013-08-102-1/+9
| | | | llvm-svn: 188128
* Add 'not' to commands that are expected to fail.Rafael Espindola2013-07-0411-11/+11
| | | | | | | This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652
* Add support for static analysis to clang-checkPavel Labath2013-06-061-0/+4
| | | | | | | | | | | | | | Summary: This adds a command line argument '-analyze' to clang-check which runs the clang static analyzer on the source files. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D926 llvm-svn: 183399
* ClangTool: strip -o from the command linePavel Labath2013-06-061-0/+11
| | | | | | | | | | | | | | Summary: This patch creates a new ArgumentsAdjuster, which removes all -o parameters from the command line. This adjuster is inserted by default into the ClangTool pipeline. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D925 llvm-svn: 183398
* clang-check: Enable specification of additional compiler argumentsPavel Labath2013-06-051-0/+5
| | | | | | | | | | | | | | Summary: This adds two command-line parameters: -extra-arg and -extra-arg-before, which enable the user to pass additional parameters to the compiler command. Reviewers: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D919 llvm-svn: 183320
* Use 'env' in tests that set environment variables.Jordan Rose2013-05-152-2/+2
| | | | | | Patch by David Fang! llvm-svn: 181861
* As of r180836, these tests should no longer be XFAILed on Windows.Aaron Ballman2013-05-015-15/+0
| | | | llvm-svn: 180853
* Added PR number for failing win64 tests.Fariborz Jahanian2013-03-255-0/+5
| | | | llvm-svn: 177886
* These tests fail on our Window64 machine.Fariborz Jahanian2013-03-225-0/+5
| | | | | | | Feel free to revert them (or let me know and I will revert) if they shouldn't be. llvm-svn: 177743
* ClangTool output cleanupEdwin Vane2013-03-151-7/+5
| | | | | | | | | | Information messages sent to stdout by ClangTool now only happen when the -debug flag is set. Error messages that used to go to stdout now go to stderr. Author: Ariel J Bernal <ariel.j.bernal@intel.com> llvm-svn: 177177
* Add indents to AST dumping and removed parenthesis from AST nodes.Richard Trieu2013-01-311-15/+15
| | | | | | | | | | | | | | | | | | | | | Indents were given the color blue when outputting with color. AST dumping now looks like this: Node |-Node | `-Node `-Node `-Node Compared to the previous: (Node (Node (Node)) (Node (Node))) llvm-svn: 174022
* Implement Attr dumping for -ast-dump.Alexander Kornienko2013-01-071-1/+2
| | | | | | | | http://llvm-reviews.chandlerc.com/D234 Patch by Philip Craig! llvm-svn: 171760
* Implement AST dumper for Decls.Alexander Kornienko2012-12-201-7/+12
| | | | | | | | http://llvm-reviews.chandlerc.com/D52 Patch by Philip Craig! llvm-svn: 170634
* Use color for -ast-dump-filter only when it is supportedDmitri Gribenko2012-11-211-1/+2
| | | | | | Patch by Philip Craig. llvm-svn: 168420
* Fix for -ast-dump-filterAlexander Kornienko2012-10-311-0/+6
| | | | | | | | | | | | | | | | | Summary: -ast-dump-filter implementation used to stop AST traversal after traversing a NULL Decl node. Added test and fixed. Reviewers: djasper, klimek, rsmith Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D93 llvm-svn: 167155
* Fixed crash and added a test and a minor output problemAlexander Kornienko2012-08-171-0/+3
| | | | llvm-svn: 162110
* Store SourceManager pointer on PrintingPolicy in the case where we're dumping,Richard Smith2012-08-161-1/+1
| | | | | | | | | and remove ASTContext reference (which was frequently bound to a dereferenced null pointer) from the recursive lump of printPretty functions. In so doing, fix (at least) one case where we intended to use the 'dump' mode, but that failed because a null ASTContext reference had been passed in. llvm-svn: 162011
* Don't constant-fold when pretty-printing alignment attribute. This fixes aRichard Smith2012-08-161-0/+5
| | | | | | potential crasher -- Context is sometimes a null reference (!!) here. llvm-svn: 162007
* Implemented -ast-dump, -ast-print, -ast-dump-filter options in clang-checkAlexander Kornienko2012-08-131-0/+35
| | | | llvm-svn: 161753
* Fix typo.Manuel Klimek2012-08-011-1/+1
| | | | llvm-svn: 161106
* This test actually works on Win32...Manuel Klimek2012-07-311-4/+0
| | | | llvm-svn: 161048
* Fixes a segfault in Tooling when using pch's:Manuel Klimek2012-07-315-0/+22
| | | | | | | | Clear the FileManager's stat cache in between running translation units, as the stat cache loaded from a pch is only valid for one compiler invocation. llvm-svn: 161047
* Removed standalone clang-ast-dump tool.Alexander Kornienko2012-07-261-21/+0
| | | | llvm-svn: 160772
* Switch to the canonical pipe-based testing of clang output usingChandler Carruth2012-07-201-3/+1
| | | | | | | | FileCheck. This avoids copying files around needlessly during test runs. llvm-svn: 160535
* clang/test/Tooling/clang-ast-dump.cpp: Mark it as REQUIRES: asserts, for now.NAKAMURA Takumi2012-07-171-0/+3
| | | | llvm-svn: 160332
* This test appears to be passing on win32.Ted Kremenek2012-07-161-4/+3
| | | | llvm-svn: 160320
* Fixing an obvious bug in a test.Alexander Kornienko2012-07-161-2/+1
| | | | llvm-svn: 160268
* The new clang-ast-dump tool for selective AST dumping. Moved common ↵Alexander Kornienko2012-07-161-0/+22
| | | | | | command-line tool stuff to CommandLineClangTool llvm-svn: 160265
* Adds support for auto-detection of compilation databases, looking in a ↵Arnaud A. de Grandmaison2012-07-101-0/+11
| | | | | | directory and all its parents. llvm-svn: 159998
* Fixes the MSVC build.Manuel Klimek2012-07-103-0/+6
| | | | llvm-svn: 159992
* Adds support for auto-detection of compilation databasesManuel Klimek2012-07-109-6/+30
| | | | | | | | | | from a source file and changes clang-check to make use of this. This makes clang-check just work on in-tree builds, and allows easy setup via a symlink per source directory to make clang-check work without any extra configuration. llvm-svn: 159990
* clang/test/Tooling: Update comments in left 2 tests on XFAIL. They are ↵NAKAMURA Takumi2012-05-232-2/+2
| | | | | | incompatible to -fms-compatibility. llvm-svn: 157352
OpenPOWER on IntegriCloud