summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Bug fix: note diagnosis on expression narrowing should say "variable ↵Larisse Voufo2013-08-143-2/+15
| | | | | | template" instead of "static data member" when appropriate llvm-svn: 188409
* Fix grammar mistake. Shuxin Yang2013-08-141-1/+1
| | | | | | Thank Richard Smith for figuring out this problem. llvm-svn: 188408
* Do no use -emit-llvm for -flto.Shuxin Yang2013-08-141-5/+4
| | | | | | Tested on multiple OSes. llvm-svn: 188406
* Testcase for r188400.Benjamin Kramer2013-08-142-0/+6
| | | | llvm-svn: 188405
* Add support for -fsanitize-blacklist and default blacklists for DFSan.Peter Collingbourne2013-08-145-1/+154
| | | | | | | | Also add some documentation. Differential Revision: http://llvm-reviews.chandlerc.com/D1346 llvm-svn: 188403
* Enhance the clang -v gcc debug printing to skip obviously bad and duplicate ↵Benjamin Kramer2013-08-142-4/+6
| | | | | | | | | | | | | | | paths. Otherwise it lists all files (e.g. shared libraries) that happen to be in the same paths the GCC installations usually reside in. On a x86_64 Debian 7 system with i386 multilibs. before: clang -v 2>&1|wc -l 3059 after: clang -v 2>&1|wc -l 10 llvm-svn: 188400
* [tests] Reapply r188354, ensure subsitution string is ascii.Daniel Dunbar2013-08-141-1/+2
| | | | | | - Now fixed to ensure substitution value isn't of unicode type on Python 2.6-7. llvm-svn: 188384
* Revert r188354, "[tests] Ensure subsitution string is ascii."NAKAMURA Takumi2013-08-141-1/+1
| | | | | | It caused "shell parser error" on win32 internal shell. ShParser doesn't expect unicode, but str. llvm-svn: 188373
* [tests] Ensure subsitution string is ascii.Daniel Dunbar2013-08-141-1/+1
| | | | llvm-svn: 188354
* revert 188352Shuxin Yang2013-08-141-5/+3
| | | | llvm-svn: 188353
* Driver::IsUsingLTO() no longer return true when seeing -emit-llvm.Shuxin Yang2013-08-141-3/+5
| | | | | | | | | | The rationale for this change is to differentiate following two situations: 1) clang -c -emit-llvm a.c 2) clang -c -flto a.c Reviewed by Eric Christopher. Thanks a lot! llvm-svn: 188352
* Bug fix: disallow a variable template to be redeclared as a non-templated ↵Larisse Voufo2013-08-1410-62/+59
| | | | | | variable llvm-svn: 188350
* Driver: Forward -Wl, and -Xlink arguments when using windows linkerHans Wennborg2013-08-142-1/+10
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1394 llvm-svn: 188346
* Refine diagnostics in my last patch.Fariborz Jahanian2013-08-142-2/+3
| | | | | | // rdar://14303083 llvm-svn: 188335
* Don't produce duplicate notes if we have deduction failure notes when resolvingRichard Smith2013-08-145-15/+22
| | | | | | the address of an overloaded function template. llvm-svn: 188334
* ObjectiveC [QoI] issue warning if an element of an nsarrayFariborz Jahanian2013-08-134-4/+21
| | | | | | | expresison is a concatenated nsstring element. // rdar://14303083 llvm-svn: 188332
* clang-cl: Support /link option and set target to win32Hans Wennborg2013-08-134-0/+25
| | | | | | | | | | | | | This adds support for the /link option, which forwards subsequent arguments to the linker. The test for this will only work when targetting win32. Since that's the only target where clang-cl makes sense, use that target by default. Differential Revision: http://llvm-reviews.chandlerc.com/D1388 llvm-svn: 188331
* Fix Altivec vector literal parser hack for C++11.Eli Friedman2013-08-133-3/+39
| | | | | | | It doesn't make any sense to accept "..." in the argument to a C-style cast, so use a separate expression list parsing routine which rejects it. PR16874. llvm-svn: 188330
* Link in the ubsan runtime when building shared objects.Nick Lewycky2013-08-132-4/+1
| | | | llvm-svn: 188325
* sizeof(void) etc. should be a hard error in C++.Eli Friedman2013-08-1310-11/+36
| | | | | | PR16872. llvm-svn: 188324
* Handle "--" explicitly in the driverHans Wennborg2013-08-132-9/+19
| | | | | | | | | | Anything that comes after -- is treated as an input file. This used to be handled automagically by the option parsing library, but after LLVM r188314, we should handle it ourselves. No functionality change. llvm-svn: 188316
* Fix implementation of C11 6.2.7/4 and C++11 [dcl.array]p3:Richard Smith2013-08-1314-95/+421
| | | | | | | | | | | | | When a local extern declaration redeclares some other entity, the type of that entity is merged with the prior type if the prior declaration is visible (in C) or is declared in the same scope (in C++). - Make LookupRedeclarationWithLinkage actually work in C++, use it in the right set of cases, and make it track whether it found a shadowed declaration. - Track whether we found a declaration in the same scope (for C++) including across serialization and template instantiation. llvm-svn: 188307
* Have Range::overlapsWith use positive logicEdwin Vane2013-08-132-3/+2
| | | | | | Improved test to catch missing case. llvm-svn: 188304
* ObjectiveC migrator: Fixes a crash and makes coupleFariborz Jahanian2013-08-133-6/+47
| | | | | | of harmless changes. llvm-svn: 188303
* Adding a vector version of tooling::applyAllReplacementsEdwin Vane2013-08-133-0/+41
| | | | | | | | | | | One day soon, tooling::Replacements will be changed from being implemented as an std::set to being implemented as an std::vector. Until then, some new code using vectors of Replacements would enjoy having a version of applyAllReplacements that takes a vector. Differential Revision: http://llvm-reviews.chandlerc.com/D1380 llvm-svn: 188295
* Fixing a conflict detection bug in tooling::deduplicateEdwin Vane2013-08-132-8/+14
| | | | | | | | If a Replacment is contained within the conflict range being built, the conflict range would be erroneously shortened. Now fixed. Tests updated to catch this case. llvm-svn: 188287
* Move logic to enable the vectorizer to clangArnold Schwaighofer2013-08-132-6/+49
| | | | | | | | | | | | | | | | | We used to decide whether to really vectorize depending on the optimization level in PassManagerBuilder. This patch moves this decision to the clang driver. We look at the optimization level and whether the f(no-)vectorize is set and decide whether to vectorize. This allows us to simplify the logic in PassManagerBuilder to just a check for whether the vectorizer should run or not. We now do the right thing for: $ clang -O1 -fvectorize $ clang -fno-vectorize -O3 llvm-svn: 188280
* Refactor "MatcherList" into "VariantMatcher" and abstract the notion of a ↵Samuel Benzaquen2013-08-1310-243/+309
| | | | | | | | | | | | | | | | list of matchers for the polymorphic case. Summary: Refactor "MatcherList" into "VariantMatcher" and abstract the notion of a list of matchers for the polymorphic case. This work is to support future changes needed for eachOf/allOf/anyOf matchers. We will add a new type on VariantMatcher. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1365 llvm-svn: 188272
* Fix xcore tests to use regex.Arnold Schwaighofer2013-08-131-8/+8
| | | | llvm-svn: 188271
* clang-format: Add option for the offset of constructor initializers.Daniel Jasper2013-08-133-3/+67
| | | | | | | | | | | | Some coding styles use a different indent for constructor initializers. Patch by Klemens Baum. Thank you. Review: http://llvm-reviews.chandlerc.com/D1360 Post review changes: Changed data type to unsigned as a negative indent width does not make sense and added test for configuration parsing. llvm-svn: 188260
* Add XCore targetRobert Lytton2013-08-139-1/+291
| | | | llvm-svn: 188258
* Fix typo in comment.David Majnemer2013-08-131-1/+1
| | | | | | Thanks Kim Gräsman! llvm-svn: 188257
* clang-format: Improve boolean expression formatting in macros.Daniel Jasper2013-08-132-1/+4
| | | | | | | | | | Before: #define IF(a, b, c) if (a&&(b == c)) After: #define IF(a, b, c) if (a && (b == c)) llvm-svn: 188256
* clang-format: Activate WebKit-style tests for MS compilers.Daniel Jasper2013-08-131-2/+2
| | | | | | They were accidentally placed in the #if. llvm-svn: 188255
* clang-format: Slightly adapt line break penalties.Daniel Jasper2013-08-132-1/+3
| | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa) ->aaaaaaaaa()); After: aaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa)->aaaaaaaaa()); llvm-svn: 188253
* [-cxx-abi microsoft] Mangle __uuidof correctly into template parametersDavid Majnemer2013-08-135-13/+62
| | | | | | | | | | | | | | | | | | | | | | | Summary: It seems that __uuidof introduces a global extern "C" declaration of type __s_GUID. However, our implementation of __uuidof does not provide such a declaration and thus must open-code the mangling for __uuidof in template parameters. This allows us to codegen scoped COM pointers and other such things. This fixes PR16836. Depends on D1356. Reviewers: rnk, cdavis5x, rsmith Reviewed By: rnk CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1357 llvm-svn: 188252
* Drive by cleanupDavid Blaikie2013-08-131-7/+2
| | | | llvm-svn: 188251
* variable templates updated for PCH serialization... Still working on test ↵Larisse Voufo2013-08-136-3/+204
| | | | | | cases... llvm-svn: 188249
* AnalysisBasedWarnings.cpp:: Prune "\param VariableName", possibly copypasto, ↵NAKAMURA Takumi2013-08-132-12/+0
| | | | | | in comments. [-Wdocumentation] llvm-svn: 188248
* [-cxx-abi microsoft] Mangle TemplateArgument::Declaration for referencesDavid Majnemer2013-08-132-2/+15
| | | | | | | | | | | | | | | | Summary: Properly mangle declarations showing up in template arguments that are reference parameters. Fun-fact: undname cannot handle these! Reviewers: rnk, cdavis5x Reviewed By: rnk CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1356 llvm-svn: 188245
* Silence a warning from MSVC about not returning a valueReid Kleckner2013-08-131-0/+1
| | | | llvm-svn: 188237
* Remove Sema includes from Analysis code to fix layeringReid Kleckner2013-08-124-136/+91
| | | | | | | | | This moves a header-only class from Sema to Analysis and puts the option check in Sema. Patch by Chris Wailes! llvm-svn: 188230
* clang-cl: Sink /Fe and /Fo diagnostic code into BuildActionsHans Wennborg2013-08-122-29/+30
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1370 llvm-svn: 188226
* ObjectiveC migration. Add couple of routineFariborz Jahanian2013-08-121-1/+23
| | | | | | , currently unused, for future cf-annotation work. llvm-svn: 188224
* DebugInfo: Simplify declaration building code - relying on the limit debug ↵David Blaikie2013-08-121-17/+6
| | | | | | info checking already in CreateType(RecordType) llvm-svn: 188222
* DebugInfo: simplify some limited/declaration creation APIsDavid Blaikie2013-08-122-41/+11
| | | | llvm-svn: 188214
* clang-cl: Consolidate tests for /Fo and /Fe into cl-outputs.cHans Wennborg2013-08-123-65/+59
| | | | llvm-svn: 188213
* Add hooks to ExternalSemaSource for after-the-fact diagnosis ofKaelyn Uhrain2013-08-125-0/+93
| | | | | | incomplete types, courtesy of Luke Zarko. llvm-svn: 188212
* Speculative build fix for r188206.Hans Wennborg2013-08-121-1/+1
| | | | | | | The cmake-clang-x86_64 was upset: error: 'template<class ImplClass, class RetTy> class clang::ConstStmtVisitor' used without template parameters llvm-svn: 188211
* clang-cl: Support the /Fe optionHans Wennborg2013-08-126-29/+105
| | | | | | | | This is used to name the linked output file. Differential Revision: http://llvm-reviews.chandlerc.com/D1344 llvm-svn: 188210
OpenPOWER on IntegriCloud