summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* do not store wchar/char16/char32/intmax width/alignment infoChris Lattner2009-11-126-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 Dunbar2009-11-125-43/+51
| | | | llvm-svn: 86968
* Avoid comparing string literals.Daniel Dunbar2009-11-121-3/+3
| | | | llvm-svn: 86967
* Move dump-build-information option into DiagnosticOptions.Daniel Dunbar2009-11-123-21/+24
| | | | llvm-svn: 86966
* clang-cc: Factor CreateDiagnosticEngine out of main.Daniel Dunbar2009-11-121-36/+50
| | | | llvm-svn: 86963
* clang-cc: -fixit is actually option, not an action, although its use with nonDaniel Dunbar2009-11-121-5/+5
| | | | | | -fsyntax-only is probably untested. llvm-svn: 86962
* Simplify.Daniel Dunbar2009-11-121-9/+0
| | | | llvm-svn: 86961
* PthreadLockChecker doesn't need PreVisitCallExpr() yet. All the current ↵Ted Kremenek2009-11-121-20/+6
| | | | | | logic should be done in PostVisitCallExpr() llvm-svn: 86959
* Add most of the boilerplate logic for a simple pthread_mutux_lock() -> ↵Ted Kremenek2009-11-123-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 Kremenek2009-11-122-12/+0
| | | | llvm-svn: 86957
* Use the --with-c-include-dirs configure option.Rafael Espindola2009-11-121-0/+9
| | | | llvm-svn: 86956
* Enhance Checker class (and GRExprEngine) to support PostVisitation for ↵Ted Kremenek2009-11-124-17/+48
| | | | | | CallExprs. No clients (yet). llvm-svn: 86949
* Remove GRExprEngine::EvalCall(). It had a single callsite in GRExprEngine, ↵Ted Kremenek2009-11-122-15/+10
| | | | | | and was easily inlined. llvm-svn: 86948
* Random const correctness, and incidentally use computeDeclContext when buildingJohn McCall2009-11-125-41/+44
| | | | | | a using declaration. llvm-svn: 86942
* Move TokenCache option to PreprocessorOptions.Daniel Dunbar2009-11-123-16/+31
| | | | llvm-svn: 86940
* Switch PTHManager to using diagnostics for most errors.Daniel Dunbar2009-11-124-29/+25
| | | | | | Also, always give errors on a token-cache PTH failure. llvm-svn: 86939
* Simplify.Daniel Dunbar2009-11-121-31/+9
| | | | llvm-svn: 86938
* clang-cc: Refactor ParseInputFollow to clearly split on the two primary cases,Daniel Dunbar2009-11-121-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 Dunbar2009-11-121-32/+40
| | | | llvm-svn: 86936
* Simplify.Daniel Dunbar2009-11-121-10/+6
| | | | llvm-svn: 86935
* clang-cc: Unify InitializeSourceManager calls.Daniel Dunbar2009-11-121-29/+10
| | | | llvm-svn: 86934
* Make StoreManager::getSizeInElements() always return DefinedOrUnknownSVal.Zhongxing Xu2009-11-124-10/+10
| | | | llvm-svn: 86932
* Note to self: don't leave debugging statements in the code for four hours.John McCall2009-11-121-2/+0
| | | | llvm-svn: 86931
* clang-cc: Move non-Consumer action handling to common location, to expose ↵Daniel Dunbar2009-11-121-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 implicitDaniel Dunbar2009-11-122-4/+19
| | | | | | PCH, which I broke. llvm-svn: 86921
* Do not use StringRef while using DebugInfo interface.Devang Patel2009-11-121-37/+30
| | | | llvm-svn: 86915
* Improve recovery in a wonky case where one tries to specialize aDouglas Gregor2009-11-123-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 Dunbar2009-11-121-1/+3
| | | | llvm-svn: 86912
* Fix test portability.Daniel Dunbar2009-11-121-1/+2
| | | | llvm-svn: 86911
* Tweak AnalyzerOptions for consistency, and make sure default constructed objectDaniel Dunbar2009-11-121-9/+21
| | | | | | is sane. llvm-svn: 86908
* Tweak formatting.Daniel Dunbar2009-11-121-15/+11
| | | | llvm-svn: 86907
* Move AnalyzerOptions into CompilerInvocation.Daniel Dunbar2009-11-123-8/+20
| | | | llvm-svn: 86906
* Add <foo> = [<bar> nextObject] to the -Widiomatic-parentheses category,John McCall2009-11-123-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 anDouglas Gregor2009-11-123-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 presentDaniel Dunbar2009-11-113-8/+20
| | | | | | in the predefines buffer. llvm-svn: 86903
* Fix clang executable path for WindowsJohn Thompson2009-11-111-1/+6
| | | | llvm-svn: 86896
* Template argument deduction for template template parameters. ThisDouglas Gregor2009-11-115-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 ofJohn McCall2009-11-112-3/+15
| | | | | | the -Wconversion check. llvm-svn: 86891
* Make test more platform independent.Fariborz Jahanian2009-11-111-1/+2
| | | | llvm-svn: 86890
* Make test more platform independent (per Sebastian's comment).Fariborz Jahanian2009-11-111-2/+2
| | | | llvm-svn: 86888
* writable atomic property's setter/getter must be in 'lock' step ofFariborz Jahanian2009-11-115-1/+417
| | | | | | | either both synthesized or bith user defined. Implements radar 6557233. llvm-svn: 86887
* Improve diagnostics when a default template argument does not matchDouglas Gregor2009-11-118-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 Dunbar2009-11-113-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 Dunbar2009-11-115-18/+28
| | | | | | should probably always own the header search object, but I'm not sure... llvm-svn: 86882
* Sink AttachDependencyFileGen into CreatePreprocessor.Daniel Dunbar2009-11-113-15/+18
| | | | llvm-svn: 86881
* Add DependencyOutputOptions to wrap -M... options, and propogate toDaniel Dunbar2009-11-118-67/+129
| | | | | | CompilerInvocation and clang-cc. llvm-svn: 86880
* Fix ctor vtable name. WIP.Mike Stump2009-11-111-1/+1
| | | | llvm-svn: 86879
* Push ctor vtable construction down further. WIP.Mike Stump2009-11-113-11/+22
| | | | llvm-svn: 86878
* Remove some stale ErrorNodes variables in GRExprEngine and the old buffer ↵Ted Kremenek2009-11-113-94/+12
| | | | | | overflow logic in GRExprEngineInternalChecks.cpp. llvm-svn: 86877
* After drinking caffeine, add the two files missing from the previous submit.Chandler Carruth2009-11-112-0/+73
| | | | | | Sorry about that. llvm-svn: 86869
OpenPOWER on IntegriCloud