summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Add objective-C style formatting to clang format andFariborz Jahanian2012-12-208-38/+96
| | | | | | | use it to format xml declaration tags. // rdar://12378714 llvm-svn: 170727
* Update RetainCountChecker to understand attribute ns_returns_autoreleased.Ted Kremenek2012-12-202-4/+12
| | | | | | Fixes <rdar://problem/12887356>. llvm-svn: 170724
* Attribute 'cf_returns_autoreleased' doesn't really exist.Ted Kremenek2012-12-201-5/+0
| | | | llvm-svn: 170723
* Rename llvm::Attributes to llvm::Attribute.Bill Wendling2012-12-2012-85/+85
| | | | llvm-svn: 170722
* Revert r170500. It over-zealously converted *ALL* things named Attributes, ↵Bill Wendling2012-12-2034-288/+288
| | | | | | which is wrong here. llvm-svn: 170721
* Fix Generic_GCC::GCCVersion::operator<Rafael Espindola2012-12-201-1/+2
| | | | | | | | | Without this patch comparing two equal versions without patch numbers (4.7 for example) will result in A < B and B < A. Patch by Simon Atanasyan. llvm-svn: 170705
* c-index-test/Makefile: Add clangFormat to USEDLIBS for libclang-unavailable ↵NAKAMURA Takumi2012-12-201-0/+1
| | | | | | hosts. llvm-svn: 170693
* c-index-test/Makefile: Reformat.NAKAMURA Takumi2012-12-201-1/+2
| | | | llvm-svn: 170692
* Minor coding style issue: NULL -> 0Alexander Kornienko2012-12-201-1/+1
| | | | llvm-svn: 170688
* Add __has_feature(memory_sanitizer).Evgeniy Stepanov2012-12-202-0/+12
| | | | llvm-svn: 170686
* ASTDumper coding style fixes.Alexander Kornienko2012-12-201-17/+16
| | | | | | | | http://llvm-reviews.chandlerc.com/D226 Patch by Philip Craig! llvm-svn: 170684
* clang/test/Driver/warning-options.cpp: Appease MSYS bash.NAKAMURA Takumi2012-12-201-1/+1
| | | | llvm-svn: 170683
* clang/test/Misc/ast-dump-decl.c: Add triple. __thread is not supported on ↵NAKAMURA Takumi2012-12-201-2/+2
| | | | | | all targets. llvm-svn: 170645
* Updated link in LanguageExtensions.rst to point to BlockLanguageSpec.rst ↵Michael Gottesman2012-12-201-1/+1
| | | | | | | | instead of BlockLanguageSpec.txt. Thanks to Jean-Daniel Dupas for comments! llvm-svn: 170644
* Changed UTF-8 emdashes to --- ala Dmitri Gribenko's comments.Michael Gottesman2012-12-201-7/+7
| | | | llvm-svn: 170643
* Fix another uninitialized bool member bug found by -fsanitize=bool. This oneRichard Smith2012-12-201-0/+1
| | | | | | | appears to currently be benign (we happen to test the flags in the right order, so we never depend on the uninitialized value). llvm-svn: 170640
* Robustify the @encode code and add support for _Atomic.John McCall2012-12-202-52/+113
| | | | | | Fixes PR14628. llvm-svn: 170639
* Fix code that attempted to produce a diagnostic with one DiagnosticEngine, thenRichard Smith2012-12-2010-13/+52
| | | | | | | | produce a note for that diagnostic either with a different DiagnosticEngine or after calling DiagnosticEngine::Reset(). That didn't make any sense, and did the wrong thing if the original diagnostic was suppressed. llvm-svn: 170636
* Provide couple of DeclPrint tests for my last patch.Fariborz Jahanian2012-12-201-0/+18
| | | | llvm-svn: 170635
* Implement AST dumper for Decls.Alexander Kornienko2012-12-2019-226/+1556
| | | | | | | | http://llvm-reviews.chandlerc.com/D52 Patch by Philip Craig! llvm-svn: 170634
* [analyzer] Add the pointer escaped callback.Anna Zaks2012-12-2016-127/+295
| | | | | | | | | | Instead of using several callbacks to identify the pointer escape event, checkers now can register for the checkPointerEscape. Converted the Malloc checker to use the new callback. SimpleStreamChecker will be converted next. llvm-svn: 170625
* [preprocessor] When "merging" macro argument tokens into one SLocEntry chunk,Argyrios Kyrtzidis2012-12-193-2/+20
| | | | | | | | make sure they came from the same kind of FileIDs. Thanks to Abramo Bagnara for providing the test case. llvm-svn: 170616
* Typo.Chad Rosier2012-12-191-1/+1
| | | | llvm-svn: 170613
* [driver] Have -isysroot warn on nonexistent paths.Chad Rosier2012-12-193-1/+12
| | | | | | rdar://12282267 llvm-svn: 170611
* Audit DeclPrinter with -ast-dump on Cocoa.h andFariborz Jahanian2012-12-194-15/+31
| | | | | | | | | fix any bad objectiveC syntax coming out of DeclPrinter. This is on going. Also, introduce a new PrintPolicy and use it as needed when declaration tag is to be produced via DeclPrinter. llvm-svn: 170606
* [PCH/Modules] In ASTReader::completeVisibleDeclsMap, make sure to visit allArgyrios Kyrtzidis2012-12-192-4/+40
| | | | | | | | | | modules when getting the decls for a namespace or translation unit. Otherwise the code-completion results will not be complete. rdar://12889089 llvm-svn: 170596
* Documentation: UsersManual.rst: some cleanups after semi-automatic conversionDmitri Gribenko2012-12-191-97/+146
| | | | llvm-svn: 170590
* objective-C: Don't warn of unimplemented property of protocols in Fariborz Jahanian2012-12-192-4/+44
| | | | | | | category, when those properties will be implemented in category's primary class or one of its super classes. // rdar://12568064 llvm-svn: 170573
* Forgot to remove trailing whitespace when I converted the ↵Michael Gottesman2012-12-191-2/+1
| | | | | | BlockLanguageSpec.txt => BlockLanguageSpec.rst. It has been eliminated. llvm-svn: 170572
* Converted BlockLanguageSpec.txt => BlockLanguageSpec.rst.Michael Gottesman2012-12-192-171/+362
| | | | llvm-svn: 170571
* Change test to dump Filecheck output to an intermediate file. This makes it ↵Ted Kremenek2012-12-191-1/+1
| | | | | | easier to update this test. llvm-svn: 170570
* Fix PR14591: Windows newlines in doxygen comments cause failed assertion inDmitri Gribenko2012-12-192-2/+14
| | | | | | | | TextDiagnostic Patch by Janusz Chorko. llvm-svn: 170566
* Add a missing 'else'. Found by grep '} if'Dmitri Gribenko2012-12-191-1/+1
| | | | | | | No testcase because this did not affect correctness: a declaration can only be ClassTemplateDecl or a FunctionTemplateDecl, not both. llvm-svn: 170565
* Comment parsing: add a missing 'else'. Found by inspection.Dmitri Gribenko2012-12-191-1/+1
| | | | | | | No testcase because we were just building an extra AST node and eventually throwing it away, so it did not affect correctness. llvm-svn: 170563
* Improve on header comment suggested by James Dennet.Fariborz Jahanian2012-12-191-2/+2
| | | | llvm-svn: 170555
* Rename the 'Attributes' class to 'Attribute'. It's going to represent a ↵Bill Wendling2012-12-1934-288/+288
| | | | | | single attribute in the future. llvm-svn: 170500
* Attempt to clarify a vexing-parse diagnostic.Richard Smith2012-12-192-2/+2
| | | | llvm-svn: 170492
* Fix assertion failure in self-host (and probably bogus template instantiationRichard Smith2012-12-192-4/+10
| | | | | | | | too). When instantiating a direct-initializer, if we find it has zero arguments, produce an empty ParenListExpr rather than returning a null expression. llvm-svn: 170490
* PR13470: Ensure that copy-list-initialization isntantiates asRichard Smith2012-12-1914-123/+184
| | | | | | | | | | | | copy-list-initialization (and doesn't add an additional copy step): Fill in the ListInitialization bit when creating a CXXConstructExpr. Use it when instantiating initializers in order to correctly handle instantiation of copy-list-initialization. Teach TreeTransform that function arguments are initializations, and so need this special treatment too. Finally, remove some hacks which were working around SubstInitializer's shortcomings. llvm-svn: 170489
* Pass AnalyzerOptions to PathDiagnosticConsumer to make analyzer options ↵Ted Kremenek2012-12-195-27/+39
| | | | | | | | accessible there. This is plumbing needed for later functionality changes. llvm-svn: 170488
* Simplify logic to use SourceManager::getFileLoc(), per Argyrios's feedback.Ted Kremenek2012-12-192-12/+3
| | | | llvm-svn: 170487
* fixes a doxygen comment.Fariborz Jahanian2012-12-191-1/+3
| | | | llvm-svn: 170485
* test/Index/preamble_macro_template.cpp: Suppress this probably due to ↵NAKAMURA Takumi2012-12-191-0/+2
| | | | | | Lit/win32 issue. Investigating. llvm-svn: 170484
* Change DeclContextLookup(Const)Result to (Mutable)ArrayRef<NamedDecl*>, as ↵David Blaikie2012-12-1922-170/+154
| | | | | | | | | | | | | | | per review discussion in r170365 This does limit these typedefs to being sequences, but no current usage requires them to be contiguous (we could expand this to a more general iterator pair range concept at some point). Also, it'd be nice if SmallVector were constructible directly from an ArrayRef but this is a bit tricky since ArrayRef depends on SmallVectorBaseImpl for the inverse conversion. (& generalizing over all range-like things, while nice, would require some nontrivial SFINAE I haven't thought about yet) llvm-svn: 170482
* Increas number of iterations before a new libclang format objectFariborz Jahanian2012-12-191-1/+1
| | | | | | is created to 1000. llvm-svn: 170481
* Make sure CodeGen uses a value of the correct type as the result ofEli Friedman2012-12-192-1/+15
| | | | | | of assignment to a bool bitfield. PR14638. llvm-svn: 170480
* Some code refactoring per Dimitri's comment.Fariborz Jahanian2012-12-192-41/+40
| | | | llvm-svn: 170478
* Fix a crash in diagnostic printing when a template class type is diff'edEli Friedman2012-12-182-1/+18
| | | | | | against itself. PR14489. llvm-svn: 170474
* Enable the loop vectorizer in clang via -fvectorizeNadav Rotem2012-12-181-2/+2
| | | | llvm-svn: 170472
* Fix the fvectorize testcaseNadav Rotem2012-12-181-8/+4
| | | | llvm-svn: 170469
OpenPOWER on IntegriCloud