Chandler Carruth
8675b4af77
Sort the #include lines for examples/...
...
llvm-svn: 169241
2012-12-04 09:37:22 +00:00
Chandler Carruth
cc0694c8a4
Sort #include lines for tools/...
...
Completely automated with sort_includes.py
llvm-svn: 169240
2012-12-04 09:25:21 +00:00
Chandler Carruth
6229d9a350
Sort #include lines for all files under include/...
...
This is a simpler sort, entirely automatic with the help of
llvm/utils/sort_includes.py -- no manual edits here.
llvm-svn: 169238
2012-12-04 09:18:49 +00:00
Chandler Carruth
3a02247dc9
Sort all of Clang's files under 'lib', and fix up the broken headers
...
uncovered.
This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.
I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.
llvm-svn: 169237
2012-12-04 09:13:33 +00:00
NAKAMURA Takumi
1f58e8e194
ASTTests, ASTMatchersTests: Move clangEdit before clangAst in USEDLIB.
...
llvm-svn: 169236
2012-12-04 08:20:41 +00:00
NAKAMURA Takumi
b25f3f7dcb
Untabify (in USEDLIBS, Makefile(s)).
...
llvm-svn: 169235
2012-12-04 08:20:35 +00:00
NAKAMURA Takumi
0e0c3aa560
clang/Lex: [CMake] Update CMakefiles since r169229.
...
llvm-svn: 169233
2012-12-04 07:40:33 +00:00
Bill Wendling
6246013f7a
Don't test for ASM output but for IR output.
...
llvm-svn: 169232
2012-12-04 07:33:40 +00:00
Argyrios Kyrtzidis
f3d587ea7c
Refactor recording the preprocessor conditional directive regions out of
...
PreprocessingRecord and into its own class, PPConditionalDirectiveRecord.
Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord
without needing a PreprocessingRecord.
llvm-svn: 169229
2012-12-04 07:27:05 +00:00
Argyrios Kyrtzidis
d1c9031c91
In the PreprocessingRecord, to identify the different conditional directive regions
...
use the SourceLocation at the start of the respective region, instead of a unique integer.
llvm-svn: 169228
2012-12-04 07:26:53 +00:00
Argyrios Kyrtzidis
6a33de18a3
[libclang] Avoid copying the CompileCommand related strings when wrapping them to a CXString.
...
llvm-svn: 169227
2012-12-04 07:26:48 +00:00
Argyrios Kyrtzidis
251ad5e06b
Introduce CompilationDatabase::getAllCompileCommands() that returns all
...
compile commands of the database and expose it via the libclang API.
llvm-svn: 169226
2012-12-04 07:26:44 +00:00
NAKAMURA Takumi
ecc759a684
clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp: Add explicit triple, x86_64-unknown-unknown. It was incompatible to i686.
...
llvm-svn: 169220
2012-12-04 06:58:05 +00:00
Bill Wendling
1ca9862cfb
Add a 'count' field to the DWARF subrange.
...
The count field is necessary because there isn't a difference between the 'lo'
and 'hi' attributes for a one-element array and a zero-element array. When the
count is '0', we know that this is a zero-element array. When it's >=1, then
it's a normal constant sized array. When it's -1, then the array is unbounded.
llvm-svn: 169219
2012-12-04 06:21:27 +00:00
Richard Smith
35d8629906
Document the existence of -fsanitize=bounds.
...
llvm-svn: 169207
2012-12-04 02:48:16 +00:00
NAKAMURA Takumi
384a957051
clang/test/Index/comment-objc-decls.m: Try to fix r169193, to add x86_64-darwin.
...
llvm-svn: 169199
2012-12-04 01:03:31 +00:00
Fariborz Jahanian
95759ff807
Testing objective-C declarations embedded in
...
<declaration> tag of Comment XML and fixed a
missing declaration of ivars private to @implementation
as result of the testing. // rdar://12378714
llvm-svn: 169193
2012-12-04 00:47:33 +00:00
Michael Ilseman
7a167eef2f
Have clang use LLVM IR's fast-math flags when in FastMath or FiniteMathOnly modes. Test cases included.
...
llvm-svn: 169191
2012-12-04 00:36:06 +00:00
Michael Ilseman
686240a97e
remove trailing whitespace
...
llvm-svn: 169187
2012-12-04 00:29:55 +00:00
NAKAMURA Takumi
55a8d1d1c1
clang/test/Driver/fsanitize-blacklist.c: Mark it as XFAIL:cygming, due to PR12920.
...
llvm-svn: 169180
2012-12-03 23:29:49 +00:00
Richard Smith
78f6b03edc
Fix test failure when building Clang with g++4.7 -- don't use a Twine temporary
...
after its lifetime has ended!
llvm-svn: 169170
2012-12-03 22:39:14 +00:00
Manuel Klimek
6a5619d12e
Fixes a compile warning and crash in the tests.
...
The necessity of this fix points to a problem with the design
of the addToken during the optimiation phase, which we need to address
in a much more principled way.
llvm-svn: 169151
2012-12-03 20:55:42 +00:00
Alexey Samsonov
9ab73626fc
Add Clang flags -fsanitize-blacklist and -fno-sanitize-blacklist. Make this flag usable for ASan. Blacklisting can be used to disable sanitizer checks for particular file/function/object.
...
llvm-svn: 169144
2012-12-03 19:12:58 +00:00
Benjamin Kramer
12fa8fe8b4
libclangFormat is not libclangTooling, but it depends on it.
...
llvm-svn: 169139
2012-12-03 18:28:52 +00:00
Alexey Samsonov
9c1b9f60ad
Fix PR14474: don't emit debug info for interface types in -gline-tables-only mode.
...
llvm-svn: 169138
2012-12-03 18:28:12 +00:00
Daniel Jasper
f793511579
Initial version of formatting library.
...
This formatting library will be used by a stand-alone clang-format tool
and can also be used when writing other refactorings.
Manuel's original design document:
https://docs.google.com/a/google.com/document/d/1gpckL2U_6QuU9YW2L1ABsc4Fcogn5UngKk7fE5dDOoA/edit
The library can already successfully format itself.
Review: http://llvm-reviews.chandlerc.com/D80
llvm-svn: 169137
2012-12-03 18:12:45 +00:00
Daniel Jasper
856194d00c
Make hasDeclaration work for enums.
...
llvm-svn: 169129
2012-12-03 15:43:25 +00:00
Evgeniy Stepanov
aea92e530d
Add -fsanitize=memory.
...
llvm-svn: 169124
2012-12-03 13:20:43 +00:00
Will Dietz
88e0233ff4
[ubsan] Add flag to enable recovery from checks when possible.
...
llvm-svn: 169114
2012-12-02 19:50:33 +00:00
Benjamin Kramer
2a812288c7
Make helper classes anonymous. Make helper functions static instead of private members so the anonymous class doesn't leak out.
...
No functionality change.
llvm-svn: 169099
2012-12-01 20:58:01 +00:00
Simon Atanasyan
2eaec51f66
[MIPS] Add -mxgot/-mno-xgot command line options
...
to enable/disable support of GOT larger than 64k.
llvm-svn: 169098
2012-12-01 18:27:21 +00:00
Benjamin Kramer
cfe5aedd5a
Add raw_ostream include to pacify MSVC.
...
llvm-svn: 169097
2012-12-01 17:54:07 +00:00
Benjamin Kramer
e5015e57c2
Update unit tests not to rely on transitive includes.
...
llvm-svn: 169096
2012-12-01 17:22:05 +00:00
Benjamin Kramer
444a1304ad
Include pruning and general cleanup.
...
llvm-svn: 169095
2012-12-01 17:12:56 +00:00
Benjamin Kramer
d7d2b1fe45
Don't include Type.h in DeclarationName.h.
...
Recursively prune some includes.
llvm-svn: 169094
2012-12-01 16:35:25 +00:00
Benjamin Kramer
8b44da58f7
Make ASTVector.h standalone without including all of ASTContext.
...
llvm-svn: 169093
2012-12-01 15:18:03 +00:00
Benjamin Kramer
ea70eb30a0
Pull the Attr iteration parts out of Attr.h, so including DeclBase.h doesn't pull in all the generated Attr code.
...
Required to pull some functions out of line, but this shouldn't have a perf impact.
No functionality change.
llvm-svn: 169092
2012-12-01 15:09:41 +00:00
Eli Bendersky
2592e4e851
Fix a test that was redefining FileCheck variables while referencing old ones.
...
In preparation for the FileCheck enhancement to support backreferences.
llvm-svn: 169090
2012-12-01 13:50:51 +00:00
Joey Gouly
a35a289de6
Switch to using -### as mentioned by chandlerc.
...
llvm-svn: 169089
2012-12-01 13:07:22 +00:00
Joey Gouly
f1040fdd51
Add -emit-llvm to test/Driver/fsanitize.c to stop this failing on the ARM bot. Approved by d0k.
...
llvm-svn: 169088
2012-12-01 12:15:28 +00:00
Benjamin Kramer
5586bdfd2a
Add .arcconfig to the repository. Useful if someone wants to use phabricator's command line tool.
...
llvm-svn: 169086
2012-12-01 12:08:08 +00:00
Michael Han
cadf0b682d
Fix a typo in comment.
...
llvm-svn: 169078
2012-12-01 04:35:48 +00:00
Richard Smith
085a4c2d13
Make these functions more clearly express the test they are performing. No functionality change.
...
llvm-svn: 169077
2012-12-01 03:15:03 +00:00
Richard Smith
2be35f5fbb
Consistently use 'needsImplicit<special member>' to determine whether we need
...
an implicit special member, rather than sometimes using '!hasDeclared<special
member>'. No functionality change.
llvm-svn: 169075
2012-12-01 02:35:44 +00:00
Eli Friedman
fe9d110f3a
Try to make the source location information for token pastes a bit more consistent.
...
Fixes a crash printing diagnostics on the gcc testsuite, and also makes
diagnostic range printing print nicer results for token pastes.
llvm-svn: 169068
2012-12-01 01:15:54 +00:00
Richard Smith
06d87f1e5d
Remove restriction on combining ubsan with asan or tsan. This has worked for a while.
...
llvm-svn: 169066
2012-12-01 01:02:45 +00:00
Douglas Gregor
c401755f46
Fix the determination of whether a capture refers to an enclosing
...
scope when dealing with nested blocks. Fixes <rdar://problem/12778708>.
llvm-svn: 169065
2012-12-01 01:01:09 +00:00
Bill Wendling
0517508c00
Don't emit a warning with an input/output parameter. We assume the user knows what they're doing here.
...
llvm-svn: 169059
2012-11-30 23:46:56 +00:00
Douglas Gregor
47238dc057
Fix test for Windows path separators
...
llvm-svn: 169058
2012-11-30 23:40:49 +00:00
Douglas Gregor
fa686fb4ed
Teach the serialized diagnostic writer to clone() itself, sharing
...
state so that all of the various clones end up rendering their
diagnostics into the same serialized-diagnostics file. This is
important when we actually want failures during module build to be
reported back to the translation unit that tried to import the
not-yet-built or out-of-date module. <rdar://problem/12565727>
llvm-svn: 169057
2012-11-30 23:32:31 +00:00