| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
It breaks on windows, need to investigate. It's not testing the
important part of that change anyways.
llvm-svn: 266975
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Changing the return type to void.
llvm-svn: 254206
|
|
|
|
|
|
|
| |
clang-check now initializes the available targets to support
clang module containers.
llvm-svn: 241656
|
|
|
|
| |
llvm-svn: 221269
|
|
|
|
|
|
| |
are suppressed with another issue.
llvm-svn: 221267
|
|
|
|
| |
llvm-svn: 221266
|
|
|
|
|
|
| |
--enable-clang-static-analyzer.
llvm-svn: 213140
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
doesn't get broken again
(prompted by NAKAMURA Takumi)
llvm-svn: 197596
|
|
|
|
| |
llvm-svn: 197229
|
|
|
|
|
|
|
|
| |
been failing since r194968.
MSVC targeted drivers (*-win32) are incapable of invoking external assembler.
llvm-svn: 194992
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 188128
|
|
|
|
|
|
|
| |
This is at least good documentation, but also opens the possibility of
using pipefail.
llvm-svn: 185652
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Patch by David Fang!
llvm-svn: 181861
|
|
|
|
| |
llvm-svn: 180853
|
|
|
|
| |
llvm-svn: 177886
|
|
|
|
|
|
|
| |
Feel free to revert them (or let me know and I will revert)
if they shouldn't be.
llvm-svn: 177743
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
http://llvm-reviews.chandlerc.com/D234
Patch by Philip Craig!
llvm-svn: 171760
|
|
|
|
|
|
|
|
| |
http://llvm-reviews.chandlerc.com/D52
Patch by Philip Craig!
llvm-svn: 170634
|
|
|
|
|
|
| |
Patch by Philip Craig.
llvm-svn: 168420
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 162110
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
potential crasher -- Context is sometimes a null reference (!!) here.
llvm-svn: 162007
|
|
|
|
| |
llvm-svn: 161753
|
|
|
|
| |
llvm-svn: 161106
|
|
|
|
| |
llvm-svn: 161048
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 160772
|
|
|
|
|
|
|
|
| |
FileCheck.
This avoids copying files around needlessly during test runs.
llvm-svn: 160535
|
|
|
|
| |
llvm-svn: 160332
|
|
|
|
| |
llvm-svn: 160320
|
|
|
|
| |
llvm-svn: 160268
|
|
|
|
|
|
| |
command-line tool stuff to CommandLineClangTool
llvm-svn: 160265
|
|
|
|
|
|
| |
directory and all its parents.
llvm-svn: 159998
|
|
|
|
| |
llvm-svn: 159992
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
incompatible to -fms-compatibility.
llvm-svn: 157352
|