summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* [C++11] Replacing RecordDecl iterators field_begin() and field_end() with ↵Aaron Ballman2014-03-0836-303/+151
| | | | | | iterator_range fields(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203355
* [C++11] Replacing EnumDecl iterators enumerator_begin() and enumerator_end() ↵Aaron Ballman2014-03-0810-32/+28
| | | | | | with iterator_range enumerators(). Updating all of the usages of the iterators with range-based for loops. llvm-svn: 203353
* Reapplying r203299 in a slightly different manner. Now range APIs are ↵Aaron Ballman2014-03-085-52/+34
| | | | | | implemented in terms of iterator APIs. llvm-svn: 203351
* [-Wunreachabe-code] Don't warn about unreachable destructors for temporaries.Ted Kremenek2014-03-082-3/+18
| | | | | | | | This can possibly be refined later, but right now the experience is so incomprehensible for a user to understand what is going on this isn't a useful warning. llvm-svn: 203336
* Fix CFG bug where the 'isTemporaryDtorsBranch' bit was silently lost for ↵Ted Kremenek2014-03-083-13/+21
| | | | | | terminators. llvm-svn: 203335
* [CFG] Record would-be successor for noreturn destructor.Ted Kremenek2014-03-081-2/+4
| | | | llvm-svn: 203334
* [-Wunreachable-code] Handle 'return' with no argument dominated by ↵Ted Kremenek2014-03-082-6/+16
| | | | | | 'noreturn' function. llvm-svn: 203333
* Add an option to disable plugins in clang.Rafael Espindola2014-03-081-3/+12
| | | | | | | | | An option with the same name already exists in the makefile build. The name CLANG_IS_PRODUCTION is historical. We should probably change it, but should change the configure build at the same time. llvm-svn: 203325
* Revert "Add an option to disable plugins in clang."Rafael Espindola2014-03-081-6/+4
| | | | | | | | This reverts commit r203320. There is some order dependency going on that I missed. llvm-svn: 203321
* Add an option to disable plugins in clang.Rafael Espindola2014-03-081-4/+6
| | | | | | An option with the same name already exists in the makefile build. llvm-svn: 203320
* Revert accidentally-committed file.Richard Smith2014-03-081-1/+0
| | | | llvm-svn: 203318
* Module [extern_c] attribute: inherit to submodules, don't write 'extern "C"'Richard Smith2014-03-089-16/+41
| | | | | | blocks when building in C mode, and serialize and deserialize the attribute. llvm-svn: 203317
* Replace "can not" with "cannot" in diagnostics messages.Ismail Pazarbasi2014-03-0723-80/+80
| | | | llvm-svn: 203302
* In my tests, I'm finding that declaring iterators in terms of ranges can ↵Aaron Ballman2014-03-075-16/+41
| | | | | | | | sometimes have dangerous side-effects where the range temporary is destroyed, taking the underlying iterators out with it. This changes the iterators so that they are no longer implemented in terms of ranges (so it's a very partial revert of the existing rangification efforts). llvm-svn: 203299
* [C++11] Revert uses of lambdas with array_pod_sort.Benjamin Kramer2014-03-074-23/+31
| | | | | | Looks like GCC implements the lambda->function pointer conversion differently. llvm-svn: 203293
* [C++11] Convert sort predicates into lambdas.Benjamin Kramer2014-03-076-50/+35
| | | | | | No functionality change. llvm-svn: 203289
* [-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
OpenPOWER on IntegriCloud