summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* [-Wunreachable-code] Treat constant globals as configuration values in ↵Ted Kremenek2014-03-072-2/+21
| | | | | | | | | unreachable code heuristics. This one could possibly be refined even further; e.g. looking at the initializer and see if it is truly a configuration value. llvm-svn: 203283
* Zap another dead 'break' statement.Ted Kremenek2014-03-071-1/+0
| | | | llvm-svn: 203282
* Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-07154-537/+512
| | | | | | This compiles cleanly with lldb/lld/clang-tools-extra/llvm. llvm-svn: 203279
* [C++11] Replacing DeclBase iterators decls_begin() and decls_end() with ↵Aaron Ballman2014-03-0721-186/+129
| | | | | | iterator_range decls(). The same is true for the noload versions of these APIs. Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203278
* Replace OwningPtr::isValid() with conversion to bool.Ahmed Charles2014-03-078-22/+16
| | | | | | This is a precursor to moving to std::unique_ptr. llvm-svn: 203277
* Change OwningPtr::take() to OwningPtr::release().Ahmed Charles2014-03-0741-111/+99
| | | | | | This is a precursor to moving to std::unique_ptr. llvm-svn: 203275
* Remove dead return and simplify code.Ted Kremenek2014-03-071-3/+1
| | | | llvm-svn: 203266
* Renaming the chains() ranged iterator to chain() per suggestion by Richard ↵Aaron Ballman2014-03-0711-15/+15
| | | | | | Smith. llvm-svn: 203262
* [C++11] Replacing IndirectFieldDecl iterators chain_begin() and chain_end() ↵Aaron Ballman2014-03-0711-48/+32
| | | | | | with iterator_range chains(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203261
* Add a note in the user manual that tsan is not supported on Mac.Nico Weber2014-03-071-1/+1
| | | | | | Patch from Sean McBride <sean@rogue-research.com>! llvm-svn: 203260
* "Mac OS/X" -> "Mac OS X" spelling fixes for clang.Nico Weber2014-03-073-5/+5
| | | | | | Patch from Sean McBride <sean@rogue-research.com>! llvm-svn: 203259
* [C++11] Replacing ObjCMethodDecl iterators param_begin() and param_end() ↵Aaron Ballman2014-03-0717-94/+65
| | | | | | with iterator_range params(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203255
* [C++11] Adding an iterator_range accessor for parameter declarations to the ↵Aaron Ballman2014-03-071-0/+7
| | | | | | CaptureDecl class; however, the only usage of the iterators cannot be converted to using the range yet. This change is for consistency with other Decls exposing parameters. llvm-svn: 203252
* [C++11] Replacing BlockDecl iterators param_begin() and param_end() with ↵Aaron Ballman2014-03-076-26/+26
| | | | | | iterator_range params(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203250
* [C++11] Replacing FunctionDecl iterators param_begin() and param_end() with ↵Aaron Ballman2014-03-0714-69/+48
| | | | | | iterator_range params(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203248
* [C++11] Replace LLVM-style type traits with C++11 standard ones.Benjamin Kramer2014-03-0713-36/+28
| | | | | | No functionality change. llvm-svn: 203241
* [C++11] Replacing iterators ddiag_begin() and ddiag_end() with ↵Aaron Ballman2014-03-073-12/+8
| | | | | | iterator_range ddiags(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203240
* [C++11] Updating getUsingDirectives to use iterator_range instead of a ↵Aaron Ballman2014-03-073-14/+11
| | | | | | std::pair. llvm-svn: 203239
* Fully reverting r203236 -- it seems the only bots that are happy are the ↵Aaron Ballman2014-03-0713-69/+79
| | | | | | MSVC bots. llvm-svn: 203237
* [C++11] Replacing iterators attr_begin() and attr_end() with iterator_range ↵Aaron Ballman2014-03-0713-79/+69
| | | | | | attrs(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203236
* Remove a test that we don't need anymoreTimur Iskhodzhanov2014-03-071-27/+0
| | | | llvm-svn: 203228
* [OPENMP] Fix for threadprivate construct instantiatiation.Alexey Bataev2014-03-071-0/+3
| | | | llvm-svn: 203225
* Fix PR18967 -- Bad this adjustment for virtual methods in a diamond virtual ↵Timur Iskhodzhanov2014-03-076-136/+207
| | | | | | inheritance hierarchy llvm-svn: 203222
* ExternalClangExamples: add a link to ToyClangPluginDmitri Gribenko2014-03-071-0/+7
| | | | | | Patch by Alexey Denisov. llvm-svn: 203219
* Tweak some test paths to match on WindowsBen Langmuir2014-03-071-4/+4
| | | | llvm-svn: 203215
* [OPENMP] Small update in threadprivate variables processing to fix template ↵Alexey Bataev2014-03-072-2/+9
| | | | | | instantiation. llvm-svn: 203214
* [Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is ↵Argyrios Kyrtzidis2014-03-078-17/+36
| | | | | | | | | | TU_Prefix avoid warning for unused macros. rdar://15034698 llvm-svn: 203213
* [OPENMP] Fixed linked libraries for libiomp5 on LinuxAlexey Bataev2014-03-072-3/+5
| | | | llvm-svn: 203212
* Add a bunch of missing changes from r203208Ben Langmuir2014-03-073-112/+138
| | | | | | Somehow lost these in a git operation. llvm-svn: 203210
* Fix recent regressions in -Wreturn-type caused by heuristics to ↵Ted Kremenek2014-03-072-249/+309
| | | | | | | | | | | | | | | | | -Wunreachable-code. I had forgotten that the same reachability code is used by both -Wreturn-type and -Wunreachable-code, so the heuristics applied to the latter were indirectly impacting the former. To address this, the reachability code is more refactored so that whiled the logic at its core is shared, the intention of the clients are better captured and segregated in helper APIs. Fixes PR19074, and also some false positives reported offline to me by Nick Lewycky. llvm-svn: 203209
* Add dependencies from imported modules with -MDBen Langmuir2014-03-079-73/+245
| | | | | | | | Add module dependencies to the dependency files created by -MD/-MMD/etc. by attaching an ASTReaderListener that will call into the dependency file generator when a module input file is seen in the serialized AST. llvm-svn: 203208
* Another one fix for getSema()/getDerived().getSema()Alexey Bataev2014-03-071-1/+1
| | | | llvm-svn: 203196
* Fixed getSema()/getDerived().getSema() diff pointed by Hal Finkel.Alexey Bataev2014-03-071-1/+1
| | | | llvm-svn: 203195
* [-Wunreachable-code] Correctly expand artificial reachability to pruned '&&' ↵Ted Kremenek2014-03-073-12/+20
| | | | | | and '||' branches involving configuration values. llvm-svn: 203194
* [-Wunreachable-code] Teach reachable code analysis heuristics about more ↵Ted Kremenek2014-03-073-1/+19
| | | | | | literal types. llvm-svn: 203193
* The Visual Studio IDE changed behavior in VS2012. It used to be the case thatYunzhong Gao2014-03-072-7/+15
| | | | | | | | | | | | | | | | the clang diagnostic has to report a column number one less than the correct value in order for the IDE to move the cursor to the expected location. This behavior is changed in VS2012 and VS2013 so that the IDE is now expecting the column number to match the actual source location. Before: source(line, column-1): type: message After: source(line, column): type: message This patch changes -fdiagnostics-format=msvc to match the new VS2012 and VS2013 when fmsc-version is 1700 or greater. Differential Revision: http://llvm-reviews.chandlerc.com/D2949 llvm-svn: 203183
* Partial revert of r203179. The build bots are telling me that some ↵Aaron Ballman2014-03-076-0/+33
| | | | | | out-of-tree builds are using redecls_begin()/redecls_end(), so adding some machinery back in to support them. llvm-svn: 203182
* [C++11] Replacing iterators redecls_begin() and redecls_end() with ↵Aaron Ballman2014-03-0622-163/+108
| | | | | | iterator_range redecls(). Updating all of the usages of the iterators with range-based for loops, which allows the begin/end forms to be removed entirely. llvm-svn: 203179
* C. Compare vector sizes using their raw element size instead ofFariborz Jahanian2014-03-062-42/+55
| | | | | | | | getTypeSize (which rounds up sizes) in order to issue diagnostics when casting to mismatched vector sizes; instead of crashing in IRGen. // rdar:// 16196902. Reviewed offline by John McCall. llvm-svn: 203175
* Use llvm.compiler.used instead of llvm.used for objc symbols.Rafael Espindola2014-03-065-40/+53
| | | | | | | | | | | | | LLVM currently has a hack (shouldEmitUsedDirectiveFor) that causes it to not print no_dead_strip for symbols starting with 'l' or 'L'. These are exactly the ones that the clang's objc codegen is producing. The net result, is that it is equivalent to llvm.compiler.used. The need for putting the private symbol in llvm.compiler.used should be clear (the objc runtime uses them). The reason for also putting the weak symbols in it is for LTO: ld64 will not ask us to preserve the it. llvm-svn: 203172
* Make the test a bit stronger by showing what is added to llvm.used.Rafael Espindola2014-03-061-0/+2
| | | | llvm-svn: 203170
* Remove a dead store, add a FIXME for another.Richard Smith2014-03-062-1/+2
| | | | llvm-svn: 203169
* Exclude invalid old decl from mismatching linkage assertionIsmail Pazarbasi2014-03-062-3/+6
| | | | | | | | This patch fixes PR18964. In linkage computation, assertion fails when an old invalid declaration's linkage mismatches with the current decl's one. llvm-svn: 203168
* Remove dead code I introduced 6 years, 4 months ago in r43518.Ted Kremenek2014-03-061-25/+0
| | | | | | Found by -Wunreachable-code. llvm-svn: 203167
* PGO: rename profile data files from .pgodata to .profdata.Bob Wilson2014-03-068-5/+5
| | | | | | | These tests were added before we had settled on using a .profdata extension for the profile data files. Renaming them now for consistency. llvm-svn: 203166
* PGO: rename FileCheck variable to follow the existing convention.Bob Wilson2014-03-061-3/+3
| | | | | | | I added this "STF" variable without noticing that all the other counter names end with a "C". Renaming it to "STC" for consistency. llvm-svn: 203165
* Update for LLVM API changeSaleem Abdulrasool2014-03-064-9/+10
| | | | | | | Use the new getObjectFormat/setObjectFormat instead of Environment now that the file format is a separate field. llvm-svn: 203161
* [docs] s/cpp11-migrate/clang-modernize/Rui Ueyama2014-03-061-2/+2
| | | | llvm-svn: 203158
* PGO: Add support for Objective-C blocks.Bob Wilson2014-03-064-6/+45
| | | | llvm-svn: 203157
* Fix dead store and simplify. No functionality change (although the code is nowRichard Smith2014-03-061-36/+31
| | | | | | correct if MaxEditDistance were increased to something greater than 1). llvm-svn: 203153
OpenPOWER on IntegriCloud