Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | do not store wchar/char16/char32/intmax width/alignment info | Chris Lattner | 2009-11-12 | 6 | -33/+14 |
| | | | | | | | into TargetInfo, just derive this based on the underlying type. This prevents them from getting out of synch, patch by Ken Dyck! llvm-svn: 86976 | ||||
* | Move warning options into DiagnosticOptions. | Daniel Dunbar | 2009-11-12 | 5 | -43/+51 |
| | | | | llvm-svn: 86968 | ||||
* | Avoid comparing string literals. | Daniel Dunbar | 2009-11-12 | 1 | -3/+3 |
| | | | | llvm-svn: 86967 | ||||
* | Move dump-build-information option into DiagnosticOptions. | Daniel Dunbar | 2009-11-12 | 3 | -21/+24 |
| | | | | llvm-svn: 86966 | ||||
* | clang-cc: Factor CreateDiagnosticEngine out of main. | Daniel Dunbar | 2009-11-12 | 1 | -36/+50 |
| | | | | llvm-svn: 86963 | ||||
* | clang-cc: -fixit is actually option, not an action, although its use with non | Daniel Dunbar | 2009-11-12 | 1 | -5/+5 |
| | | | | | | -fsyntax-only is probably untested. llvm-svn: 86962 | ||||
* | Simplify. | Daniel Dunbar | 2009-11-12 | 1 | -9/+0 |
| | | | | llvm-svn: 86961 | ||||
* | PthreadLockChecker doesn't need PreVisitCallExpr() yet. All the current ↵ | Ted Kremenek | 2009-11-12 | 1 | -20/+6 |
| | | | | | | logic should be done in PostVisitCallExpr() llvm-svn: 86959 | ||||
* | Add most of the boilerplate logic for a simple pthread_mutux_lock() -> ↵ | Ted Kremenek | 2009-11-12 | 3 | -1/+181 |
| | | | | | | pthread_mutex_unlock() checker. We need to add a visitor method to Checker for handling dead symbols in order to detect locks that are not unlocked. llvm-svn: 86958 | ||||
* | Remove obsolete 'struct NullDerefTag'. | Ted Kremenek | 2009-11-12 | 2 | -12/+0 |
| | | | | llvm-svn: 86957 | ||||
* | Use the --with-c-include-dirs configure option. | Rafael Espindola | 2009-11-12 | 1 | -0/+9 |
| | | | | llvm-svn: 86956 | ||||
* | Enhance Checker class (and GRExprEngine) to support PostVisitation for ↵ | Ted Kremenek | 2009-11-12 | 4 | -17/+48 |
| | | | | | | CallExprs. No clients (yet). llvm-svn: 86949 | ||||
* | Remove GRExprEngine::EvalCall(). It had a single callsite in GRExprEngine, ↵ | Ted Kremenek | 2009-11-12 | 2 | -15/+10 |
| | | | | | | and was easily inlined. llvm-svn: 86948 | ||||
* | Random const correctness, and incidentally use computeDeclContext when building | John McCall | 2009-11-12 | 5 | -41/+44 |
| | | | | | | a using declaration. llvm-svn: 86942 | ||||
* | Move TokenCache option to PreprocessorOptions. | Daniel Dunbar | 2009-11-12 | 3 | -16/+31 |
| | | | | llvm-svn: 86940 | ||||
* | Switch PTHManager to using diagnostics for most errors. | Daniel Dunbar | 2009-11-12 | 4 | -29/+25 |
| | | | | | | Also, always give errors on a token-cache PTH failure. llvm-svn: 86939 | ||||
* | Simplify. | Daniel Dunbar | 2009-11-12 | 1 | -31/+9 |
| | | | | llvm-svn: 86938 | ||||
* | clang-cc: Refactor ParseInputFollow to clearly split on the two primary cases, | Daniel Dunbar | 2009-11-12 | 1 | -100/+110 |
| | | | | | | | when we are running an AST consumer and when we are just running the preprocessor or parser alone. llvm-svn: 86937 | ||||
* | clang-cc: Factor ReadPCHFile out of ProcessInputFile. | Daniel Dunbar | 2009-11-12 | 1 | -32/+40 |
| | | | | llvm-svn: 86936 | ||||
* | Simplify. | Daniel Dunbar | 2009-11-12 | 1 | -10/+6 |
| | | | | llvm-svn: 86935 | ||||
* | clang-cc: Unify InitializeSourceManager calls. | Daniel Dunbar | 2009-11-12 | 1 | -29/+10 |
| | | | | llvm-svn: 86934 | ||||
* | Make StoreManager::getSizeInElements() always return DefinedOrUnknownSVal. | Zhongxing Xu | 2009-11-12 | 4 | -10/+10 |
| | | | | llvm-svn: 86932 | ||||
* | Note to self: don't leave debugging statements in the code for four hours. | John McCall | 2009-11-12 | 1 | -2/+0 |
| | | | | llvm-svn: 86931 | ||||
* | clang-cc: Move non-Consumer action handling to common location, to expose ↵ | Daniel Dunbar | 2009-11-12 | 1 | -58/+70 |
| | | | | | | the massive amount of redundancy we have introduced through blind copy-and-paste. llvm-svn: 86922 | ||||
* | Fix PCH/preprocess test to be more useful, and unbreak -E mode with implicit | Daniel Dunbar | 2009-11-12 | 2 | -4/+19 |
| | | | | | | PCH, which I broke. llvm-svn: 86921 | ||||
* | Do not use StringRef while using DebugInfo interface. | Devang Patel | 2009-11-12 | 1 | -37/+30 |
| | | | | llvm-svn: 86915 | ||||
* | Improve recovery in a wonky case where one tries to specialize a | Douglas Gregor | 2009-11-12 | 3 | -2/+19 |
| | | | | | | | | | | template template parameter. When building a template-id type, check whether the template-name itself is dependent (even if the template arguments are not!) and handle it as a template-id type. llvm-svn: 86913 | ||||
* | Fix Makefile dependency bug with out-of-dir builds. | Daniel Dunbar | 2009-11-12 | 1 | -1/+3 |
| | | | | llvm-svn: 86912 | ||||
* | Fix test portability. | Daniel Dunbar | 2009-11-12 | 1 | -1/+2 |
| | | | | llvm-svn: 86911 | ||||
* | Tweak AnalyzerOptions for consistency, and make sure default constructed object | Daniel Dunbar | 2009-11-12 | 1 | -9/+21 |
| | | | | | | is sane. llvm-svn: 86908 | ||||
* | Tweak formatting. | Daniel Dunbar | 2009-11-12 | 1 | -15/+11 |
| | | | | llvm-svn: 86907 | ||||
* | Move AnalyzerOptions into CompilerInvocation. | Daniel Dunbar | 2009-11-12 | 3 | -8/+20 |
| | | | | llvm-svn: 86906 | ||||
* | Add <foo> = [<bar> nextObject] to the -Widiomatic-parentheses category, | John McCall | 2009-11-12 | 3 | -10/+55 |
| | | | | | | | and give that category an explicit test. Generalize the internal diagnostic name. llvm-svn: 86905 | ||||
* | Remove an overly-eager assertion when replacing tokens with an | Douglas Gregor | 2009-11-12 | 3 | -18/+20 |
| | | | | | | | | | | | annotation token, because some of the tokens we're annotating might not be in the set of cached tokens (we could have consumed them unconditionally). Also, move the tentative parsing from ParseTemplateTemplateArgument into the one caller that needs it, improving recovery. llvm-svn: 86904 | ||||
* | Tweak PCH -include handling to make sure it matches the name as would be present | Daniel Dunbar | 2009-11-11 | 3 | -8/+20 |
| | | | | | | in the predefines buffer. llvm-svn: 86903 | ||||
* | Fix clang executable path for Windows | John Thompson | 2009-11-11 | 1 | -1/+6 |
| | | | | llvm-svn: 86896 | ||||
* | Template argument deduction for template template parameters. This | Douglas Gregor | 2009-11-11 | 5 | -52/+136 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | permits, among other things, ripping apart and reconstructing templates via partial specialization: template<typename T> struct DeepRemoveConst { typedef T type; }; template<typename T> struct DeepRemoveConst<const T> { typedef typename DeepRemoveConst<T>::type type; }; template<template<typename> class TT, typename T> struct DeepRemoveConst<TT<T> > { typedef TT<typename DeepRemoveConst<T>::type> type; }; Also, fix a longstanding thinko in the code handling partial ordering of class template partial specializations. We were performing the second deduction without clearing out the results of the first deduction. It's amazing we got through so much code with such a horrendous error :( llvm-svn: 86893 | ||||
* | Fix PR 5422: handle lvalue results when evaluating 'based' ptrtoints as part of | John McCall | 2009-11-11 | 2 | -3/+15 |
| | | | | | | the -Wconversion check. llvm-svn: 86891 | ||||
* | Make test more platform independent. | Fariborz Jahanian | 2009-11-11 | 1 | -1/+2 |
| | | | | llvm-svn: 86890 | ||||
* | Make test more platform independent (per Sebastian's comment). | Fariborz Jahanian | 2009-11-11 | 1 | -2/+2 |
| | | | | llvm-svn: 86888 | ||||
* | writable atomic property's setter/getter must be in 'lock' step of | Fariborz Jahanian | 2009-11-11 | 5 | -1/+417 |
| | | | | | | | either both synthesized or bith user defined. Implements radar 6557233. llvm-svn: 86887 | ||||
* | Improve diagnostics when a default template argument does not match | Douglas Gregor | 2009-11-11 | 8 | -110/+211 |
| | | | | | | | | | | | | | | | | | | | | | | | | with its corresponding template parameter. This can happen when we performed some substitution into the default template argument and what we had doesn't match any more, e.g., template<int> struct A; template<typename T, template<T> class X = A> class B; B<long> b; Previously, we'd emit a pretty but disembodied diagnostic showing how the default argument didn't match the template parameter. The diagnostic was good, but nothing tied it to the *use* of the default argument in "B<long>". This commit fixes that. Also, tweak the counting of active template instantiations to avoid counting non-instantiation records, such as those we create for (surprise!) checking default arguments, instantiating default arguments, and performing substitutions as part of template argument deduction. llvm-svn: 86884 | ||||
* | Always initialize the header search object as part of InitializePreprocessor; | Daniel Dunbar | 2009-11-11 | 3 | -9/+12 |
| | | | | | | not doing this has little to no utility. llvm-svn: 86883 | ||||
* | Allow Preprocessor to take ownership of the HeaderSearch object. I think it ↵ | Daniel Dunbar | 2009-11-11 | 5 | -18/+28 |
| | | | | | | should probably always own the header search object, but I'm not sure... llvm-svn: 86882 | ||||
* | Sink AttachDependencyFileGen into CreatePreprocessor. | Daniel Dunbar | 2009-11-11 | 3 | -15/+18 |
| | | | | llvm-svn: 86881 | ||||
* | Add DependencyOutputOptions to wrap -M... options, and propogate to | Daniel Dunbar | 2009-11-11 | 8 | -67/+129 |
| | | | | | | CompilerInvocation and clang-cc. llvm-svn: 86880 | ||||
* | Fix ctor vtable name. WIP. | Mike Stump | 2009-11-11 | 1 | -1/+1 |
| | | | | llvm-svn: 86879 | ||||
* | Push ctor vtable construction down further. WIP. | Mike Stump | 2009-11-11 | 3 | -11/+22 |
| | | | | llvm-svn: 86878 | ||||
* | Remove some stale ErrorNodes variables in GRExprEngine and the old buffer ↵ | Ted Kremenek | 2009-11-11 | 3 | -94/+12 |
| | | | | | | overflow logic in GRExprEngineInternalChecks.cpp. llvm-svn: 86877 | ||||
* | After drinking caffeine, add the two files missing from the previous submit. | Chandler Carruth | 2009-11-11 | 2 | -0/+73 |
| | | | | | | Sorry about that. llvm-svn: 86869 |