John Thompson
e744d2b92d
Fix assertion error.
...
llvm-svn: 196863
2013-12-10 02:26:44 +00:00
NAKAMURA Takumi
78f534d689
[CMake] clang-tools-extra: Update dependencies.
...
llvm-svn: 196860
2013-12-10 01:41:10 +00:00
NAKAMURA Takumi
ff9225f3d7
[CMake] clang-tools-extra may not depend on LLVM CodeGen.
...
llvm-svn: 196805
2013-12-09 19:27:57 +00:00
NAKAMURA Takumi
21bf7a11b9
check-clang-tools: Prune 'clang' stuff. Clang is not used here.
...
llvm-svn: 196804
2013-12-09 19:27:46 +00:00
Benjamin Kramer
4c719e5b8d
clang-modernize: Update PPCallback user.
...
Add LLVM_OVERRIDE to make this a hard error in the future.
llvm-svn: 196659
2013-12-07 17:18:12 +00:00
John Thompson
87f9fef5a5
Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum.
...
llvm-svn: 196648
2013-12-07 08:41:15 +00:00
NAKAMURA Takumi
0d62c78c20
clang-tools-extra/test/clang-modernize/HeaderReplacements/main.cpp: Dequote safe chars rather than hairy quoting.
...
Thanks to Lang, to let me noticed.
llvm-svn: 196559
2013-12-06 02:00:41 +00:00
NAKAMURA Takumi
c69c625dda
Revert r196474, "Re-apply r196439, with sed patterns modified to be more DOS-path friendly."
...
llvm-svn: 196553
2013-12-06 00:34:09 +00:00
Lang Hames
50aa21aedd
Re-apply r196439, with sed patterns modified to be more DOS-path friendly.
...
llvm-svn: 196474
2013-12-05 06:17:42 +00:00
NAKAMURA Takumi
4655681c27
Revert r196439, "If the LLVM OBJ_DIR path contains any characters not listed in the"
...
Did you expect to break DOS driveletter?
llvm-svn: 196460
2013-12-05 03:05:26 +00:00
Lang Hames
b53a85a6f8
If the LLVM OBJ_DIR path contains any characters not listed in the
...
ScalarSafeChars array in Output::scalarString (See YAMLTraits.cpp line 554 as
of r196428), this test will fail: The path will be single quoted to preserve
the 'unsafe' characters, which doesn't match the expected (unquoted) output.
Notionally "unsafe" characters include fairly innocuous ones like the '+'
symbol (I don't know enough YAML to be sure, but I suspect '+' doesn't really
need to be quoted).
I have added some sed lines to strip leading spaces, and leading and trailing
single quote (') characters from the path. That should make this test slightly
more robust.
If possible, this test should be rewritten to use FileCheck, rather than
diffing against expected output - the latter is likely to brittle, and require
further sed goop in the future.
llvm-svn: 196439
2013-12-05 00:33:58 +00:00
John Thompson
abe79d9fd2
Improve comment, as requested by Alp Toker.
...
llvm-svn: 196409
2013-12-04 20:41:30 +00:00
John Thompson
17c357342a
Enea Zaffanella's fix for the PPCallbacks Elif callback, with a slight re-org, and an update of the new PPCallbacks test (soon to be moved to clang from extra), rather the unittest.
...
llvm-svn: 196407
2013-12-04 20:19:30 +00:00
Alexander Kornienko
3daaf32e93
Adapt the code to the interface change in r196108.
...
llvm-svn: 196109
2013-12-02 15:22:30 +00:00
Alp Toker
9a5134e6be
Fix a variety of user-visible and comment typos
...
llvm-svn: 196038
2013-12-01 05:08:12 +00:00
Alp Toker
303a6481cb
Add a .clang-format to avoid reflow of test RUN lines
...
See thread "clang-format turning tests into no-ops"
llvm-svn: 196037
2013-12-01 05:08:00 +00:00
NAKAMURA Takumi
63bf66816c
Trailing linefeed.
...
llvm-svn: 195357
2013-11-21 13:50:58 +00:00
Alexander Kornienko
e5df476c8b
Fix the build after r195016.
...
llvm-svn: 195020
2013-11-18 18:03:29 +00:00
John Thompson
5100e8e9ae
Reworked moduleImport example with real data.
...
llvm-svn: 194885
2013-11-15 23:26:14 +00:00
Manuel Klimek
fe3f34e50b
Always add core checkers if static analyzer checks are enabled.
...
In response to post-commit feedback by Jordan, this is required to
make sure path-sensitive checks work correctly.
llvm-svn: 194807
2013-11-15 11:19:56 +00:00
Manuel Klimek
814f9bd93a
Make clang's static analyzer checks available through clang-tidy.
...
This is implemented in a way that the current static analyzer
architecture allows, in the future we might want to revisit this.
With this change static analyzer checks are available from clang-tidy
by specifying -checks=clang-analyzer-<name>.
This change also fixes the use of the compilation database to allow
clang-tidy to be used like any other clang tool.
llvm-svn: 194707
2013-11-14 15:49:44 +00:00
John Thompson
c2d8a5c7f5
[extra] pp-trace - Fix for PragmaWarning output, adding tests for the pragma callbacks.
...
llvm-svn: 194636
2013-11-14 00:18:19 +00:00
John Thompson
13e1cd3a37
Extended moduleImport test to test a module with more than one path component. This required a change to the includes test, because of the change to the headers.
...
llvm-svn: 194504
2013-11-12 19:50:49 +00:00
John Thompson
c1a13f3f20
Fixed moduleImport and ident callbacks. Fixed modules test. Added ident callback test. A better test for moduleExport is coming.
...
llvm-svn: 194447
2013-11-12 03:12:18 +00:00
John Thompson
0bc443b5c8
[extra] pp-trace - Add test for conditional callbacks.
...
llvm-svn: 194440
2013-11-12 02:04:53 +00:00
John Thompson
da0b753035
[extra] pp-trace - Test for moduleImport.
...
llvm-svn: 194422
2013-11-11 21:20:02 +00:00
Peter Collingbourne
c7ae6101a4
Revert r194247 conditional on non-MSVC.
...
These definitions are required by the standard. MSVC rejecting them
appears to be a bug.
llvm-svn: 194252
2013-11-08 08:54:53 +00:00
NAKAMURA Takumi
55380c4e54
clang-query: Unbreak msvc.
...
llvm-svn: 194247
2013-11-08 06:29:09 +00:00
Peter Collingbourne
0dc0e6d32c
Silence GCC warning.
...
llvm-svn: 194230
2013-11-08 01:08:12 +00:00
Peter Collingbourne
8b1265b353
Introduce clang-query tool.
...
This tool is for interactive exploration of the Clang AST using AST matchers.
It currently allows the user to enter a matcher at an interactive prompt
and view the resulting bindings as diagnostics, AST pretty prints or AST
dumps. Example session:
$ cat foo.c
void foo(void) {}
$ clang-query foo.c --
clang-query> match functionDecl()
Match #1 :
foo.c:1:1: note: "root" binds here
void foo(void) {}
^~~~~~~~~~~~~~~~~
1 match.
Differential Revision: http://llvm-reviews.chandlerc.com/D2098
llvm-svn: 194227
2013-11-08 00:08:23 +00:00
John Thompson
41778fd28f
pp-trace user documentation - beginnings
...
llvm-svn: 194081
2013-11-05 14:41:29 +00:00
John Thompson
5252325990
[extra] pp-trace - Fixed problems found while writing docs.
...
llvm-svn: 194079
2013-11-05 14:16:11 +00:00
John Thompson
1da6792242
pp-trace user documentation - beginnings
...
llvm-svn: 193842
2013-11-01 00:39:54 +00:00
John Thompson
5052eb7394
pp-trace user documentation - beginnings
...
llvm-svn: 193841
2013-11-01 00:38:04 +00:00
Dan Gohman
cc30af0cef
Rename Input to Inputs, for consistency with other tests.
...
llvm-svn: 193805
2013-10-31 21:29:44 +00:00
Alexey Samsonov
fe74ba6b7b
Delete unused private field to fix -Werror build
...
llvm-svn: 193763
2013-10-31 17:03:07 +00:00
John Thompson
17c4f7d1db
Fix comment. pp-trace can only handle source file at a time.
...
llvm-svn: 193746
2013-10-31 12:53:42 +00:00
NAKAMURA Takumi
125a4171b2
check-clang-tools: Add pp-trace for deps.
...
llvm-svn: 193745
2013-10-31 12:46:16 +00:00
NAKAMURA Takumi
a256eb4038
check-clang-tools: Reorder CLANG_TOOLS_TEST_DEPS.
...
llvm-svn: 193744
2013-10-31 12:46:10 +00:00
John Thompson
9979454e72
pp-trace - preprocessor tacing and PPCallbacks testing tool
...
llvm-svn: 193743
2013-10-31 12:23:32 +00:00
Edwin Vane
dd8cc29ce5
Refactoring transform-specific options
...
Making the user null macros command-line option visible to the
UseNullptrTransform class instead of being visible only to the match callback.
llvm-svn: 192905
2013-10-17 17:57:36 +00:00
John Thompson
26ecaf95a2
Added module map generation docs and some clean-up.
...
llvm-svn: 192792
2013-10-16 13:44:21 +00:00
NAKAMURA Takumi
bf5391d2ef
clang-tools-extra/modularize: Compare Paths to Prefix as natively-canonicalized form.
...
On Win32, paths are not expected to be canonicalized.
llvm-svn: 192763
2013-10-16 01:42:33 +00:00
Rui Ueyama
dfa171034c
Add missing dependency for clang-modernize.
...
Clang-modernize uses clang-apply-replacements internally but its CMakefile.txt
lacked the dependency.
llvm-svn: 192723
2013-10-15 18:01:06 +00:00
Will Dietz
0f3b4aaf34
ModuleAssistant: Fix warning, don't return bool as a pointer.
...
No functionality change intended.
llvm-svn: 192713
2013-10-15 15:45:00 +00:00
John Thompson
5ab4f11152
Added module map generation option.
...
llvm-svn: 192703
2013-10-15 13:52:33 +00:00
Ismail Pazarbasi
ebcc0a004b
Reverted Test commit; added new line to the end of README.txt
...
llvm-svn: 192541
2013-10-12 20:43:36 +00:00
Ismail Pazarbasi
cdc244bcd8
Test commit; added new line to the end of README.txt
...
llvm-svn: 192540
2013-10-12 20:42:31 +00:00
Edwin Vane
f6a34b5665
clang-modernize: Clean up help output
...
Now hiding options clang-modernize doesn't use and didn't create. Version
printer specialized for clang-modernize. EXAMPLES text fixed and brought
up-to-date.
Differential Revision: http://llvm-reviews.chandlerc.com/D1849
llvm-svn: 192253
2013-10-08 23:31:05 +00:00
Edwin Vane
ea9d124fd4
Switching code owner email address.
...
llvm-svn: 192189
2013-10-08 16:28:05 +00:00