summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Query only the latest version of an identifier in the PCH chain. Make sure ↵Sebastian Redl2010-08-026-29/+27
| | | | | | this version holds the entire declaration chain. This is a much saner solution than trying to merge the info from all elements, and makes redeclarations work properly. Expand the declarations test case to cover more compliated cases. llvm-svn: 110052
* Remove mutable data on TagType and InjectedClassNameType, by instead walking ↵Sebastian Redl2010-08-024-33/+41
| | | | | | the declaration chain in search of a definition. This is necessary for a sane chained PCH implementation. No observable performance change on Carbon.h syntax-only, and bootstraps cleanly. llvm-svn: 110051
* Compute width/align of objc builtin types (id, etc)Fariborz Jahanian2010-08-021-0/+6
| | | | | | for radar 8258797. llvm-svn: 110047
* Update UsersManual, we support '#pragma align' now.Daniel Dunbar2010-08-021-5/+0
| | | | llvm-svn: 110040
* Frontend: Change PluginASTAction::ParseArgs to take a CompilerInstance objectDaniel Dunbar2010-08-023-11/+29
| | | | | | | | | | | | for use in reporting diagnostics. - We don't want to use the Action's own CompilerInstance, because that is only initialized during file processing and I like that invariant. Also, if ParseArgs returns false then abandon execution. Also, remove unused PluginASTAction::PrintHelp virtual method. llvm-svn: 110039
* You actually have to include a header in order to use a symbol, it's so 90s..Argyrios Kyrtzidis2010-08-021-0/+1
| | | | llvm-svn: 110034
* Use llvm_unreachable.Argyrios Kyrtzidis2010-08-021-2/+1
| | | | llvm-svn: 110033
* Shut up warnings in Release build.Argyrios Kyrtzidis2010-08-021-0/+1
| | | | llvm-svn: 110032
* Read/write in PCH Sema's StdNamespace and StdBadAlloc and use a LazyDeclPtr ↵Argyrios Kyrtzidis2010-08-0212-19/+77
| | | | | | for them that will deserialize them when needed. llvm-svn: 110031
* Rename getStdNamespace -> getOrCreateStdNamespace, to better reflect its ↵Argyrios Kyrtzidis2010-08-023-4/+4
| | | | | | | | functionality. No functionality change. llvm-svn: 110030
* Driver/Darwin: Change where Darwin computes the host version, to normalize toolDaniel Dunbar2010-08-023-30/+25
| | | | | | chain construction. llvm-svn: 110028
* Driver: Have -ccc-host-triple simply override the default in the driver, forDaniel Dunbar2010-08-021-3/+4
| | | | | | now. llvm-svn: 110027
* Driver/Darwin: Inline some constants.Daniel Dunbar2010-08-023-17/+7
| | | | llvm-svn: 110026
* Driver/FreeBSD: Change how FreeBSD derives the Lib32 variable, to normalize toolDaniel Dunbar2010-08-023-12/+11
| | | | | | chain construction. llvm-svn: 110025
* Driver: Move HostInfo::lookupTypeForExtension to ↵Daniel Dunbar2010-08-027-54/+22
| | | | | | ToolChain::LookupTypeForExtension. llvm-svn: 110024
* Driver: Give Build{Universal,}Actions access to the default host tool chain. IDaniel Dunbar2010-08-022-11/+15
| | | | | | | avoided this originally to enforce that the driver actions aren't toolchain dependent, but it isn't worth the cumbersone additional hostinfo split. llvm-svn: 110023
* Improve flat store: MemRegion::getAsOffset() computes a region's offset withinZhongxing Xu2010-08-027-44/+178
| | | | | | | | the top-level object. FlatStore now can bind and retrieve element and field regions. PR7297 is fixed by flat store. llvm-svn: 110020
* Driver: Add Compilation::addCommand and switch tools to using it, now that weDaniel Dunbar2010-08-025-69/+47
| | | | | | don't have to deal with nested jobs. llvm-svn: 110015
* Driver: Eliminate PipedJob, which is now unused.Daniel Dunbar2010-08-023-57/+1
| | | | llvm-svn: 110014
* Driver: Eliminate special InputInfo kind for pipes, it is now unused.Daniel Dunbar2010-08-022-135/+35
| | | | llvm-svn: 110013
* Driver: Eliminate now unnecessary tool hooks for whether they accept piped ↵Daniel Dunbar2010-08-023-47/+0
| | | | | | input/output. llvm-svn: 110012
* Driver: Simplify.Daniel Dunbar2010-08-021-7/+2
| | | | llvm-svn: 110011
* Driver: Eliminate now unused argument.Daniel Dunbar2010-08-022-5/+2
| | | | llvm-svn: 110010
* Driver: Simplify logic for sending 'clang -E t.c' output to stdout.Daniel Dunbar2010-08-021-25/+4
| | | | llvm-svn: 110009
* Driver: Never try to use piped inputs.Daniel Dunbar2010-08-021-7/+2
| | | | llvm-svn: 110008
* Driver: Start ripping out support for -pipe, which is worthless and complicatesDaniel Dunbar2010-08-022-23/+4
| | | | | | too many other things. llvm-svn: 110007
* Driver/OpenBSD: Update toolchain for compiler changes / C++; patch by JonathanDaniel Dunbar2010-08-012-1/+19
| | | | | | Gray. llvm-svn: 109994
* Driver: Keep track of a separate "install dir", which is the path where clangDaniel Dunbar2010-08-013-5/+46
| | | | | | | | | was invoked from (which may not be where the executable itself is). - This allows having e.g., /Developer/usr/bin/clang be a symlink to some other location, while still making sure the Driver finds 'as', 'ld', etc. relative to itself. llvm-svn: 109989
* Simplify.Daniel Dunbar2010-08-011-4/+2
| | | | llvm-svn: 109988
* PR7777: Set EnabledByDefault to something useful, instead of setting itEli Friedman2010-08-011-1/+1
| | | | | | | randomly. This makes us consistently show "-pedantic" as the warning option for a warning where appropriate. llvm-svn: 109987
* Kill off RequiresGlobalConstructor in favor of isConstantInitializer.John McCall2010-08-014-54/+34
| | | | | | Note some obvious false positives in the test case. llvm-svn: 109986
* Make a first pass at implementing -Wglobal-constructors. I'm worried that thisJohn McCall2010-08-015-1/+114
| | | | | | | will end up bizarrely mirroring CGExprConstant, but that might be the hazard of this feature. llvm-svn: 109984
* Instantiate attributes from the pattern record when instantiatingJohn McCall2010-08-014-13/+31
| | | | | | a class template. Fixes rdar://problem/8243419. llvm-svn: 109967
* Fix indentation.John McCall2010-08-011-9/+9
| | | | llvm-svn: 109965
* Don't consider all local variables in C++ to mandate scope-checking, justJohn McCall2010-08-012-2/+22
| | | | | | those with initializers. llvm-svn: 109964
* Only run the jump-checker if there's a branch-protected scope *and* there'sJohn McCall2010-08-016-22/+62
| | | | | | | | | | a switch or goto somewhere in the function. Indirect gotos trigger the jump-checker regardless, because the conditions there are slightly more elaborate and it's too marginal a case to be worth optimizing. Turns off the jump-checker in a lot of cases in C++. rdar://problem/7702918 llvm-svn: 109962
* Iterate typeloc's for class bases.Nick Lewycky2010-07-311-1/+1
| | | | llvm-svn: 109961
* Fix fragile-ABI ObjC exceptions in the presence of optimization withJohn McCall2010-07-313-12/+253
| | | | | | | | | the magic of inline assembly. Essentially we use read and write hazards on the set of local variables to force flushing locals to memory immediately before any protected calls and to inhibit optimizing locals across the setjmp->catch edge. Fixes rdar://problem/8160285 llvm-svn: 109960
* build: Don't pass -avoid-version or -no-undefined on Darwin, they don't doDaniel Dunbar2010-07-311-2/+1
| | | | | | anything. llvm-svn: 109958
* Parser: Add support for #pragma align, which is just another spelling of #pragmaDaniel Dunbar2010-07-316-17/+55
| | | | | | options align. llvm-svn: 109952
* After a lengthy design discussion, add support for "ownership attributes" ↵Ted Kremenek2010-07-3110-24/+640
| | | | | | for malloc/free checking. Patch by Andrew McGregor! llvm-svn: 109939
* Implement dependency analysis for the precompiled preamble. If any ofDouglas Gregor2010-07-314-32/+125
| | | | | | | the files in the precompiled preamble have changed since it was build, force the preamble to be rebuilt. llvm-svn: 109937
* Update checker build.Ted Kremenek2010-07-301-1/+1
| | | | llvm-svn: 109907
* Test case for PR7763.Tom Care2010-07-301-0/+14
| | | | llvm-svn: 109895
* Uncomment unfinished work bailout in IdempotentOperationsChecker.Tom Care2010-07-301-2/+2
| | | | llvm-svn: 109893
* Add some timers to ASTUnit that are only enabled when the LIBCLANG_TIMING ↵Douglas Gregor2010-07-302-16/+64
| | | | | | environment variable is set. llvm-svn: 109890
* Correctly deal with using names for both functions and structs in chained PCH.Sebastian Redl2010-07-307-14/+41
| | | | llvm-svn: 109871
* Add specialisation iterators for {Class,Function}TemplateDeclPeter Collingbourne2010-07-301-0/+74
| | | | | | | | | This patch introduces the ClassTemplateDecl::spec_{begin,end}() and FunctionTemplateDecl::{,partial_}spec_{begin,end}() member functions as a public interface for iterating over the declarations' specialisation sets. llvm-svn: 109870
* Refactor find*Specialization functions using SpecEntryTraitsPeter Collingbourne2010-07-302-16/+22
| | | | | | | | | This patch reimplements the find*Specialization family of member functions of {Class,Function}TemplateDecl in terms of a common implementation that uses SpecEntryTraits to obtain the most recent declaration. llvm-svn: 109869
* Introduce RedeclarableTemplateDecl::SpecEntryTraitsPeter Collingbourne2010-07-301-0/+18
| | | | | | | SpecEntryTraits describes how to obtain the most recent declaration of a specialisation from an entry in a specialisation FoldingSet. llvm-svn: 109868
OpenPOWER on IntegriCloud