summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't test for ASM output but for IR output.Bill Wendling2012-12-041-9/+6
| | | | llvm-svn: 169232
* Refactor recording the preprocessor conditional directive regions out ofArgyrios Kyrtzidis2012-12-0414-214/+272
| | | | | | | | | PreprocessingRecord and into its own class, PPConditionalDirectiveRecord. Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord without needing a PreprocessingRecord. llvm-svn: 169229
* In the PreprocessingRecord, to identify the different conditional directive ↵Argyrios Kyrtzidis2012-12-042-23/+26
| | | | | | | | regions use the SourceLocation at the start of the respective region, instead of a unique integer. llvm-svn: 169228
* [libclang] Avoid copying the CompileCommand related strings when wrapping ↵Argyrios Kyrtzidis2012-12-041-2/+2
| | | | | | them to a CXString. llvm-svn: 169227
* Introduce CompilationDatabase::getAllCompileCommands() that returns allArgyrios Kyrtzidis2012-12-049-10/+116
| | | | | | compile commands of the database and expose it via the libclang API. llvm-svn: 169226
* clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp: Add explicit ↵NAKAMURA Takumi2012-12-041-1/+1
| | | | | | triple, x86_64-unknown-unknown. It was incompatible to i686. llvm-svn: 169220
* Add a 'count' field to the DWARF subrange.Bill Wendling2012-12-043-6/+35
| | | | | | | | | 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
* Document the existence of -fsanitize=bounds.Richard Smith2012-12-041-2/+5
| | | | llvm-svn: 169207
* clang/test/Index/comment-objc-decls.m: Try to fix r169193, to add x86_64-darwin.NAKAMURA Takumi2012-12-041-1/+1
| | | | llvm-svn: 169199
* Testing objective-C declarations embedded inFariborz Jahanian2012-12-042-1/+171
| | | | | | | | <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
* Have clang use LLVM IR's fast-math flags when in FastMath or FiniteMathOnly ↵Michael Ilseman2012-12-043-0/+36
| | | | | | modes. Test cases included. llvm-svn: 169191
* remove trailing whitespaceMichael Ilseman2012-12-041-32/+32
| | | | llvm-svn: 169187
* clang/test/Driver/fsanitize-blacklist.c: Mark it as XFAIL:cygming, due to ↵NAKAMURA Takumi2012-12-031-0/+3
| | | | | | PR12920. llvm-svn: 169180
* Fix test failure when building Clang with g++4.7 -- don't use a Twine temporaryRichard Smith2012-12-031-5/+5
| | | | | | after its lifetime has ended! llvm-svn: 169170
* Fixes a compile warning and crash in the tests.Manuel Klimek2012-12-031-12/+13
| | | | | | | | 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
* Add Clang flags -fsanitize-blacklist and -fno-sanitize-blacklist. Make this ↵Alexey Samsonov2012-12-037-6/+56
| | | | | | flag usable for ASan. Blacklisting can be used to disable sanitizer checks for particular file/function/object. llvm-svn: 169144
* libclangFormat is not libclangTooling, but it depends on it.Benjamin Kramer2012-12-032-2/+3
| | | | llvm-svn: 169139
* Fix PR14474: don't emit debug info for interface types in -gline-tables-only ↵Alexey Samsonov2012-12-032-3/+28
| | | | | | mode. llvm-svn: 169138
* Initial version of formatting library.Daniel Jasper2012-12-0312-1/+1651
| | | | | | | | | | | | | 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
* Make hasDeclaration work for enums.Daniel Jasper2012-12-032-2/+10
| | | | llvm-svn: 169129
* Add -fsanitize=memory.Evgeniy Stepanov2012-12-035-0/+45
| | | | llvm-svn: 169124
* [ubsan] Add flag to enable recovery from checks when possible.Will Dietz2012-12-0211-32/+82
| | | | llvm-svn: 169114
* Make helper classes anonymous. Make helper functions static instead of ↵Benjamin Kramer2012-12-013-167/+158
| | | | | | | | private members so the anonymous class doesn't leak out. No functionality change. llvm-svn: 169099
* [MIPS] Add -mxgot/-mno-xgot command line optionsSimon Atanasyan2012-12-013-0/+21
| | | | | | to enable/disable support of GOT larger than 64k. llvm-svn: 169098
* Add raw_ostream include to pacify MSVC.Benjamin Kramer2012-12-011-0/+1
| | | | llvm-svn: 169097
* Update unit tests not to rely on transitive includes.Benjamin Kramer2012-12-011-0/+1
| | | | llvm-svn: 169096
* Include pruning and general cleanup.Benjamin Kramer2012-12-0131-17/+57
| | | | llvm-svn: 169095
* Don't include Type.h in DeclarationName.h.Benjamin Kramer2012-12-0114-56/+77
| | | | | | Recursively prune some includes. llvm-svn: 169094
* Make ASTVector.h standalone without including all of ASTContext.Benjamin Kramer2012-12-011-1/+2
| | | | llvm-svn: 169093
* Pull the Attr iteration parts out of Attr.h, so including DeclBase.h doesn't ↵Benjamin Kramer2012-12-0149-252/+335
| | | | | | | | | 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
* Fix a test that was redefining FileCheck variables while referencing old ones.Eli Bendersky2012-12-011-4/+4
| | | | | | In preparation for the FileCheck enhancement to support backreferences. llvm-svn: 169090
* Switch to using -### as mentioned by chandlerc.Joey Gouly2012-12-011-8/+8
| | | | llvm-svn: 169089
* Add -emit-llvm to test/Driver/fsanitize.c to stop this failing on the ARM ↵Joey Gouly2012-12-011-8/+8
| | | | | | bot. Approved by d0k. llvm-svn: 169088
* Add .arcconfig to the repository. Useful if someone wants to use ↵Benjamin Kramer2012-12-011-0/+4
| | | | | | phabricator's command line tool. llvm-svn: 169086
* Fix a typo in comment.Michael Han2012-12-011-1/+1
| | | | llvm-svn: 169078
* Make these functions more clearly express the test they are performing. No ↵Richard Smith2012-12-011-2/+2
| | | | | | functionality change. llvm-svn: 169077
* Consistently use 'needsImplicit<special member>' to determine whether we needRichard Smith2012-12-014-66/+60
| | | | | | | an implicit special member, rather than sometimes using '!hasDeclared<special member>'. No functionality change. llvm-svn: 169075
* Try to make the source location information for token pastes a bit more ↵Eli Friedman2012-12-012-17/+51
| | | | | | | | | 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
* Remove restriction on combining ubsan with asan or tsan. This has worked for ↵Richard Smith2012-12-012-9/+8
| | | | | | a while. llvm-svn: 169066
* Fix the determination of whether a capture refers to an enclosingDouglas Gregor2012-12-012-4/+16
| | | | | | scope when dealing with nested blocks. Fixes <rdar://problem/12778708>. llvm-svn: 169065
* Don't emit a warning with an input/output parameter. We assume the user ↵Bill Wendling2012-11-302-1/+7
| | | | | | knows what they're doing here. llvm-svn: 169059
* Fix test for Windows path separatorsDouglas Gregor2012-11-301-3/+3
| | | | llvm-svn: 169058
* Teach the serialized diagnostic writer to clone() itself, sharingDouglas Gregor2012-11-302-67/+124
| | | | | | | | | | 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
* Don't warn if the input size is less than the register size. Also don't warn ifBill Wendling2012-11-303-7/+19
| | | | | | | the output size is greater than the register size. No truncation occurs with those. Reword warning to make it clearer what's the problem is. llvm-svn: 169054
* Make -Wtautological-constant-out-of-range-compare behave sanely for enums ↵Eli Friedman2012-11-302-5/+11
| | | | | | | | with a signed fixed type. <rdar://problem/12780159>. llvm-svn: 169051
* Rename ModuleBuildPath -> ModuleBuildStack. Thanks, Dmitri!Douglas Gregor2012-11-304-32/+32
| | | | llvm-svn: 169045
* When we're emitting a diagnostic with a source location in an importedDouglas Gregor2012-11-308-10/+151
| | | | | | | | | | | | | | module, provide a module import stack similar to what we would get for an include stack, e.g., In module 'DependsOnModule' imported from build-fail-notes.m:4: In module 'Module' imported from DependsOnModule.framework/Headers/DependsOnModule.h:1: Inputs/Module.framework/Headers/Module.h:15:12: note: previous definition is here @interface Module <rdar://problem/12696425> llvm-svn: 169042
* Fixing a precedence issue with my previous commit.Aaron Ballman2012-11-301-1/+1
| | | | llvm-svn: 169041
* Fixing an MSVC warning about an unsafe mixture of Boolean and unsigned types ↵Aaron Ballman2012-11-301-1/+1
| | | | | | in a logical operator. llvm-svn: 169037
* Comments: no need to escape any characters in \code ... \endcode.Dmitri Gribenko2012-11-301-6/+6
| | | | llvm-svn: 169030
OpenPOWER on IntegriCloud