summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Removing some more unnecessary manual quotes from attribute diagnostics.Aaron Ballman2014-01-032-2/+2
| | | | llvm-svn: 198392
* Removing some more unnecessary manual quotes from attribute diagnostics.Aaron Ballman2014-01-032-2/+2
| | | | llvm-svn: 198391
* [analyzer] Don't track return value of NSNull +null for retain/release tracking.Ted Kremenek2014-01-032-5452/+5486
| | | | | | Fixes <rdar://problem/12858915>. llvm-svn: 198388
* Removing some more unnecessary manual quotes from attribute diagnostics.Aaron Ballman2014-01-033-9/+9
| | | | llvm-svn: 198387
* Remove unused variable to fix clang warningReid Kleckner2014-01-031-1/+0
| | | | llvm-svn: 198382
* [ms-cxxabi] Move VBTableBuilder from CodeGen over to AST/VTableBuilder.cppReid Kleckner2014-01-036-427/+417
| | | | | | | | | | | | | | | | | | | | | Summary: No functionality change. This code should live here long-term because we should be able to use it to compute correct vftable names. It turns out that the most natural way to implement the naming algorithm is to use a caching layer similar to what we already have for virtual table info in VTableContext. Subsequent changes will take advantage of this to fix PR17748, where we have a vbtable name collision. Reviewers: majnemer CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2499 llvm-svn: 198380
* Removed an unnecessary %select from the alignas diagnostics. The attribute ↵Aaron Ballman2014-01-023-14/+10
| | | | | | already knows how it was spelled. llvm-svn: 198375
* This diagnostic should not have had the manual quotation marks. Its only ↵Aaron Ballman2014-01-022-1/+6
| | | | | | usage passed in an Attr object, which was already quoted when printing the diagnostic. However, there was no test case that caught this bug -- one has been added. llvm-svn: 198373
* Removing some more unnecessary manual quotes from attribute diagnostics. ↵Aaron Ballman2014-01-023-7/+7
| | | | | | Updated the associated testcase because QualType pretty printing was an improvement. llvm-svn: 198372
* Removing some more unnecessary manual quotes from attribute diagnostics.Aaron Ballman2014-01-022-6/+6
| | | | llvm-svn: 198371
* Reworded the NSObject attribute diagnostics to be more consistent with other ↵Aaron Ballman2014-01-022-7/+7
| | | | | | attribute diagnostics. Also updated the associated test case. llvm-svn: 198368
* ObjectiveC. Remove false positive warning for missing propertyFariborz Jahanian2014-01-026-5/+40
| | | | | | | backing ivar by not issuing this warning if ivar is referenced somewhere and accessor makes method calls. // rdar://15727325 llvm-svn: 198367
* Removing some manual quotes from this diagnostic, since the AST diagnostics ↵Aaron Ballman2014-01-022-2/+2
| | | | | | engine knows how to handle NamedDecl objects. llvm-svn: 198365
* Updated the wording of two attribute-related diagnostics so that they print ↵Aaron Ballman2014-01-0211-34/+42
| | | | | | the offending attribute name. Also updates the associated test cases. llvm-svn: 198355
* Objective-C ARC++: Prefer references to __strong/__weak over ↵Douglas Gregor2014-01-022-0/+27
| | | | | | | | __unsafe_unretained. Fixes <rdar://problem/15713945>. llvm-svn: 198343
* CMake separate projects: finish output-directory changes.Douglas Gregor2014-01-022-4/+5
| | | | | | | Make sure clang-tblgen, clang++, and clang-cl get created in the Clang binary build directory. llvm-svn: 198331
* [CMake] Add missing set_output_directory after Takumi's change in r198205.Jordan Rose2014-01-021-0/+1
| | | | | | | | | | In a standalone build, Clang binaries should end up in Clang's build folder, not LLVM's. Xcode still has a few issues finding auxiliary tools and libraries in the build folders. I'll fix those next. llvm-svn: 198328
* Using the quoted version of an attribute name for consistency with other ↵Aaron Ballman2014-01-023-8/+8
| | | | | | attribute diagnostics. llvm-svn: 198326
* ObjectiveC. Class methods must be ignored when looking forFariborz Jahanian2014-01-022-1/+15
| | | | | | | property accessor's missing backing ivar. This eliminates the bogus warning being issued. // rdar://15728901 llvm-svn: 198322
* Add test for r198311.Roman Divacky2014-01-021-0/+4
| | | | llvm-svn: 198321
* CMake: Unbreak separated LLVM/Clang project builds for Xcode.Douglas Gregor2014-01-021-4/+6
| | | | | | | | | | | | | The separate Xcode project generated for Clang is putting the clang executables into the same location where the LLVM executables are going. This is wrong, and breaks the Clang build because we try to create clang++ and clang-cl symlinks in the wrong place and to the wrong place. As a stop-gap to get these builds working again, teach the symlink generation to point into the LLVM executable directory instead. llvm-svn: 198319
* Remove a tab that snuck in.Roman Divacky2014-01-021-1/+1
| | | | llvm-svn: 198312
* In the FreeBSD assembler driver, inform the sparc assembler that we're producingRoman Divacky2014-01-021-0/+13
| | | | | | PIC code. llvm-svn: 198311
* Added an option to avoid splitting certain kinds of comments into lines.Alexander Kornienko2014-01-025-2/+27
| | | | | | | | | | | | | | Summary: Added CommentPragmas option for this. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2460 llvm-svn: 198310
* Verify that clang TargetInfo descriptions match DataLayout strings from LLVMAlp Toker2014-01-023-9/+22
| | | | | | | The backend string is only verified when available as it's possible to run clang IRGen for targets that haven't been built or don't exist in LLVM. llvm-svn: 198309
* Remove the now unused 's' specifications.Rafael Espindola2014-01-022-6/+6
| | | | llvm-svn: 198308
* Pass the aapcs and apcs features down to llvm.Rafael Espindola2014-01-021-0/+5
| | | | | | | No functionality change, but unblocks asserting that llvm's and clang's datalayout strings are the same. llvm-svn: 198306
* [OpenCL] The kernel attribute can only be used on functions.Joey Gouly2014-01-022-0/+6
| | | | llvm-svn: 198300
* Update the copyright credits -- Happy new year 2014!NAKAMURA Takumi2014-01-013-3/+3
| | | | | FIXME: Dragonegg may be updated at non-trivial changes. llvm-svn: 198274
* Remove an unused diag left over from r198046Alp Toker2014-01-011-2/+0
| | | | llvm-svn: 198272
* Eliminate UnaryTypeTraitExprAlp Toker2014-01-0126-236/+31
| | | | | | | | | | | | | Remove UnaryTypeTraitExpr and switch all remaining type trait related handling over to TypeTraitExpr. The UTT/BTT/TT enum prefix and evaluation code is retained pending further cleanup. This is part of the ongoing work to unify type traits following the removal of BinaryTypeTraitExpr in r197273. llvm-svn: 198271
* ExpectAndConsume: Diagnose errors automaticallyAlp Toker2014-01-0113-180/+164
| | | | | | | | | | | | | | 1) Teach ExpectAndConsume() to emit expected and expected-after diagnostics using the generic diagnostic descriptions added in r197972, eliminating another set of trivial err_expected_* variations while maintaining existing behaviour. 2) Lift SkipUntil() recovery out of ExpectAndConsume(). The Expect/Consume family of functions are primitive parser operations that now have the well-defined property of operating on single tokens. Factoring out recovery exposes opportunities for more consistent and tailored error recover at the call sites instead of just relying on a bottled SkipUntil formula. llvm-svn: 198270
* [OpenCL] Produce an error, instead of a warning, for sizeof(void) in OpenCL.Joey Gouly2013-12-313-2/+12
| | | | | | Patch by joey.gouly@arm.com llvm-svn: 198264
* Recover from errors in enum definitionSerge Pavlov2013-12-314-7/+67
| | | | | | | | | | Previously any error in enum definition body stopped parsing it. With this change parser tries to recover from errors. The patch fixes PR10982. Differential Revision: http://llvm-reviews.chandlerc.com/D2018 llvm-svn: 198259
* Silence g++ 4.9 build issueAlp Toker2013-12-311-2/+2
| | | | | | | lib/ASTMatchers/ASTMatchFinder.cpp:276:28: error: typedef 'traverse_can_only_be_instantiated_with_base_type' locally defined but not used [-Werror=unused-local-typedefs] traverse_can_only_be_instantiated_with_base_type); llvm-svn: 198256
* Switch over more of the parser to err_expectedAlp Toker2013-12-304-29/+21
| | | | | | | Includes a fix for a missing highlight range caused by a ',' typo in the PP diagnostics. llvm-svn: 198252
* Update DataRecursiveASTVisitor so that it visits attributes.DeLesley Hutchins2013-12-303-5/+38
| | | | llvm-svn: 198249
* Fix two typos in comments. No functionality change.Nick Lewycky2013-12-301-2/+2
| | | | llvm-svn: 198243
* Remove linkage macro from the CXLanguageKind enumReid Kleckner2013-12-301-1/+1
| | | | | | Enums don't have linkage, so clang warns when this expands to dllimport. llvm-svn: 198227
* Update RecursiveASTVisitor so that it visits attributes. This is currentlyDeLesley Hutchins2013-12-308-3/+191
| | | | | | | | important for thread safety attributes, which contain expressions that were not being visited, and were thus invisible to various tools. There are now Visit*Attr methods that can be overridden for every attribute. llvm-svn: 198224
* Changed the test to avoid EXPECT_EQ(false, ...), which leads toAlexander Kornienko2013-12-301-7/+9
| | | | | | -Wconversion-null warning in GCC. llvm-svn: 198214
* [CMake][VS][XCode] Restruct the output directory layout more comfortable, ↵NAKAMURA Takumi2013-12-302-36/+4
| | | | | | | | | | | | | | | | | | ${BINARY_DIR}/${BUILD_MODE}/(bin|lib) We have been seeing nasty directory layout with CMake multiconfig, such as, bin/Release/clang.exe lib/clang/3.x/... lib/Release/clang/3.x/.. (duplicated) Move the layout similar to autoconf's; Release/bin/clang.exe Release/lib/clang/3.x/... Checked on Visual Studio 10. Could you guys please confirm my change on XCode(and other multiconfig builders)? Note: Don't set variables CMAKE_*_OUTPUT_DIRECTORY any more, or a certain builder, for eaxample, msbuild.exe, would be confused. llvm-svn: 198205
* Port r198088 (set NO_DEAD_STRIP for clang) from make to cmake.Nico Weber2013-12-303-2/+5
| | | | | | | | Also stop setting passing -dead_strip explicitly for libclang and instead rely on this now happening by default. (And make it happen by default for add_clang_library, which doesn't use the library cmake functions from llvm.) llvm-svn: 198200
* For AArch64 Neon, simplify scalar dup by lane0 for fp.Jiangning Liu2013-12-301-0/+48
| | | | llvm-svn: 198195
* Fix and reword some typosAlp Toker2013-12-302-3/+2
| | | | llvm-svn: 198191
* Cleanup: Switch the preprocessor to err_pp_expected_afterAlp Toker2013-12-303-8/+10
| | | | | | | | | | This is approaching consistency but the PP and Parse categories they still have slightly different wording: def err_pp_expected_after : Error<"missing %1 after %0">; def err_expected_after : Error<"expected %1 after %0">; llvm-svn: 198189
* Don't use PrintFunctionNames.exports on Windows.Nico Weber2013-12-301-3/+6
| | | | llvm-svn: 198187
* Fix typo in comment.Nico Weber2013-12-291-1/+1
| | | | llvm-svn: 198186
* [cmake] Set in LLVM_EXPORTED_SYMBOL_FILE PrintFunctionNames/CMakeLists.txt.Nico Weber2013-12-292-1/+9
| | | | | | | The corresponding Makefile sets it too. Also tweak add_clang_library to support LLVM_EXPORTED_SYMBOL_FILE for modules. llvm-svn: 198185
* Use LLVM_EXPORTED_SYMBOL_FILE in libclang's cmake build.Nico Weber2013-12-292-38/+3
| | | | | | Now the exports file should have an effect on non-darwin too. llvm-svn: 198176
OpenPOWER on IntegriCloud