summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* [libclang] Even though we disable the preprocessing record during indexing,Argyrios Kyrtzidis2012-10-022-6/+20
| | | | | | make sure that it gets enabled for when a module needs to be created. llvm-svn: 165021
* [libclang] Implement the importedASTFile indexing callback to provideArgyrios Kyrtzidis2012-10-026-5/+82
| | | | | | info about imported modules. llvm-svn: 165020
* Splitting this test case into two because the behavior for the calling ↵Aaron Ballman2012-10-022-6/+6
| | | | | | convention code is target-specific. llvm-svn: 165016
* Allowing individual targets to determine whether a given calling convention ↵Aaron Ballman2012-10-0216-22/+163
| | | | | | | | is allowed or ignored with warning. This allows for correct name mangling for x64 targets on Windows, which in turn allows for linking against the Win32 APIs. Fixes PR13782 llvm-svn: 165015
* Silencing an MSVC warning about */ being found outside of a comment.Aaron Ballman2012-10-021-1/+1
| | | | llvm-svn: 165007
* Add redecls into their lexical DeclContext: this is what they assert on, and ↵Axel Naumann2012-10-022-1/+12
| | | | | | | | the merging should have set it correctly. This is especially relevant for templatedDecls that might be injected (and thus have their DeclContext set to) somewhere completely different. llvm-svn: 165005
* Enable programmatic provisioning of virtual module.map files (instead of ↵Axel Naumann2012-10-021-0/+5
| | | | | | | | writing out actual module.map files). Opens up the wonders of clang::Modules to tools - though they remain as experimental as before. llvm-svn: 165002
* Only those InterestingDecls that got added to the AST should be passed to ↵Axel Naumann2012-10-026-13/+39
| | | | | | the ASTConsumer. llvm-svn: 165001
* -arch is a darwin-specific driver feature, use a triple instead in rewriter ↵Benjamin Kramer2012-10-021-3/+1
| | | | | | test. llvm-svn: 164995
* Force triple in test to unbreak it on non-darwin platforms.Benjamin Kramer2012-10-021-2/+2
| | | | llvm-svn: 164994
* Merge pending instantiations instead of overwriting existing ones.Axel Naumann2012-10-0213-85/+178
| | | | | | | | | | | Check whether a pending instantiation needs to be instantiated (or whether an instantiation already exists). Verify the size of the PendingInstantiations record (was only checking size of existing PendingInstantiations). Migrate Obj-C++ part of redecl-merge into separate test, now that this is growing. templates.mm: test that CodeGen has seen exactly one definition of template instantiations. redecl-merge.m: use "@" specifier for expected-diagnostics. llvm-svn: 164993
* Use an environment variable instead of what's in the make cmd goals.Bill Wendling2012-10-021-1/+1
| | | | llvm-svn: 164992
* Tweak diagnostic text to indicate that __weak on a local variable is only ↵Ted Kremenek2012-10-023-2/+21
| | | | | | | | allowed for ARC. Fixes <rdar://problem/12407705> llvm-svn: 164990
* Add FP_CONTRACT support for clang.Lang Hames2012-10-0221-43/+229
| | | | | | | | Clang will now honor the FP_CONTRACT pragma and emit LLVM fmuladd intrinsics for expressions of the form A * B + C (when they occur in a single statement). llvm-svn: 164989
* Check if an IdentifierInfo* is null when the FunctionDecl isn't a simple C ↵Ted Kremenek2012-10-021-2/+6
| | | | | | | | function. Fixes <rdar://problem/12355298> llvm-svn: 164988
* Re-enable this test to reflect re-enabling the new SROA pass.Chandler Carruth2012-10-021-4/+0
| | | | llvm-svn: 164987
* -Wformat: Don't check format strings in uninstantiated templates.Jordan Rose2012-10-023-4/+142
| | | | | | | | | | | | | Also applies to -Wnonnull, -Wtype-safety, and -Wnon-pod-varargs. All of these can be better checked at instantiation time. This change does not actually affect regular CallExpr function calls, since the checks there only happen after overload resolution. However, it will affect Objective-C method calls. <rdar://problem/12373934> llvm-svn: 164984
* clang/test/Index: Fix two tests. Both %S and %t are expanded to absolute paths.NAKAMURA Takumi2012-10-022-5/+5
| | | | llvm-svn: 164982
* [ms-inline asm] Use the convertToMapAndConstraints() function in the front-end.Chad Rosier2012-10-011-62/+72
| | | | | | Rework the logic to account for the fact that we no longer create a MCInst. llvm-svn: 164980
* [clang-tests] Changed relative paths to absolute paths in run command for ↵Michael Gottesman2012-10-013-9/+9
| | | | | | | | annotate-macro-args.m, get-cursor-macro-args.m, import_self.c. This fixes make check-all failures when make -C is used to run the tests. llvm-svn: 164978
* Modern translator test. Breakup test into two andFariborz Jahanian2012-10-012-8/+28
| | | | | | skip the x86_64 version for mingw32 and win32. llvm-svn: 164977
* Rename a test I just added.Fariborz Jahanian2012-10-011-0/+0
| | | | llvm-svn: 164971
* objective-C modern translator. Test for producing bothFariborz Jahanian2012-10-011-0/+34
| | | | | | | 32bit and 64bit version of modern translator. // rdar://12189793 llvm-svn: 164970
* Fix treatment of case which came up on std-proposals@: 'void' is permitted ↵Richard Smith2012-10-012-3/+19
| | | | | | in core constant expressions, despite not being a literal type. llvm-svn: 164968
* PR13978: A 'decltype' DeclSpec has an expression representation, not a typeRichard Smith2012-10-012-1/+16
| | | | | | | representation. Fix crash if it appears in the return type of a member function definition. llvm-svn: 164967
* Move isObjCSelf into Expr.Anna Zaks2012-10-014-33/+29
| | | | llvm-svn: 164966
* [analyzer] Address Jordan's review for r164868.Anna Zaks2012-10-011-16/+14
| | | | llvm-svn: 164965
* Add xml test for availability to comment-xml-schema.cFariborz Jahanian2012-10-012-1/+7
| | | | llvm-svn: 164961
* [analyzer] Allow ObjC ivar lvalues where the base is nil.Jordan Rose2012-10-013-79/+101
| | | | | | | | | | | | | | By analogy with C structs, this seems to be legal, if probably discouraged. It's only if the ivar is read from or written to that there's a problem. Running a program that gets the "address" of an instance variable does in fact return the offset when the base "object" is nil. This isn't a full revert because r164442 includes some diagnostic tweaks as well; those have been kept. This partially reverts r164442 / 08965091770c9b276c238bac2f716eaa4da2dca4. llvm-svn: 164960
* [analyzer] Add a test for PR13927 "offsetof replacement flagged as null deref"Jordan Rose2012-10-011-0/+8
| | | | | | | | This seems to be legal according to C11 6.5.3.2. No functionality change. llvm-svn: 164959
* Revert "[analyzer] Check that a member expr is valid even when the result is ↵Jordan Rose2012-10-013-29/+13
| | | | | | | | | | | | | | | | | | | | an lvalue." The original intent of this commit was to catch potential null dereferences early, but it breaks the common "home-grown offsetof" idiom (PR13927): (((struct Foo *)0)->member - ((struct foo *)0)) As it turns out, this appears to be legal in C, per a footnote in C11 6.5.3.2: "Thus, &*E is equivalent to E (even if E is a null pointer)". In C++ this issue is still open: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#232 We'll just have to make sure we have good path notes in the future. This reverts r164441 / 9be016dcd1ca3986873a7b66bd4bc027309ceb59. llvm-svn: 164958
* availability in structured documents. TakesFariborz Jahanian2012-10-018-46/+59
| | | | | | care of comments by Dimitri and Doug. llvm-svn: 164957
* Have AnalyzerOptions::getBooleanOption() stick the matching configTed Kremenek2012-10-016-22/+36
| | | | | | | | string in the config table so that it can be dumped as part of the config dumper. Add a test to show that these options are sticking and can be cross-checked using FileCheck. llvm-svn: 164954
* Add checker debug.ConfigDumper to dump the contents of the configuration table.Ted Kremenek2012-10-012-0/+39
| | | | | | | The format of this output is a WIP; largely I'm bringing it up now for regression testing. We can evolve the output format over time. llvm-svn: 164953
* Reapply "[analyzer] Handle inlined constructors for rvalue temporaries ↵Jordan Rose2012-10-013-7/+22
| | | | | | | | | | | correctly." This is related to but not blocked by <rdar://problem/12137950> ("Return-by-value structs do not have associated regions") This reverts r164875 / 3278d41e17749dbedb204a81ef373499f10251d7. llvm-svn: 164952
* Cleaning up the self initialization checker.Richard Trieu2012-10-015-44/+53
| | | | | | | | | | | -Allow Sema to do more processing on the initial Expr before checking it. -Remove the special conditions in HandleExpr() -Move the code so that only one call site is needed. -Removed the function from Sema and only call it locally. -Warn on potentially evaluated reference variables, not just casts to r-values. -Update tests. llvm-svn: 164951
* [analyzer] Make ProgramStateManager's SubEngine parameter optional.Jordan Rose2012-10-017-14/+14
| | | | | | | | | It is possible and valid to have a state manager and associated objects without having a SubEngine or checkers. Patch by Olaf Krzikalla! llvm-svn: 164947
* Fix ASTMatchersTests in configurations whereDaniel Jasper2012-10-011-4/+4
| | | | | | "#include <initializer_list>" is unavailable for whatever reason. llvm-svn: 164944
* Add matchers for selected C++11 features.Daniel Jasper2012-10-013-9/+71
| | | | | | | Patch by Gábor Horváth. Review: http://llvm-reviews.chandlerc.com/D46 llvm-svn: 164943
* The Redeclarable part of named decls is read before their name.Axel Naumann2012-10-012-7/+11
| | | | | | | | Lookup can nevertheless find them due to the serialized lookup table. For instance when reading a template decl's templatedDecl, it will search for existing decls that it could be a redeclaration of, and find the half-read template decl. Thus there is no point in asserting the names of decls. llvm-svn: 164932
* Also merge template redeclarations.Axel Naumann2012-10-014-7/+30
| | | | | | Don't require specializations (of existing and read template) to be unique. llvm-svn: 164931
* Mark two Clang tests as passing on ARMNico Weber2012-10-012-4/+6
| | | | | | | Also move one of them from grep to FileCheck. Patch from Joey Gouly <joey.gouly@arm.com>! llvm-svn: 164929
* fix test/CodeGen/tbaa-for-vptr.cpp: don't hardcode the index of metadataKostya Serebryany2012-10-011-3/+3
| | | | llvm-svn: 164928
* Bring ASTReader and Writer into sync for the case where a canonical template ↵Axel Naumann2012-10-016-7/+31
| | | | | | | | | specialization was written, which is non-canonical at the time of reading: force the reading of the ClassTemplateDecl if it was written. The easiest way out is to store whether the decl was canonical at the time of writing. Add test. llvm-svn: 164927
* CodeGen: Copy tail padding when we're not dealing with a trivial copy assign ↵Benjamin Kramer2012-09-304-7/+114
| | | | | | | | | | or move assign operator. This fixes a regression from r162254, the optimizer has problems reasoning about the smaller memcpy as it's often not safe to widen a store but making it smaller is. llvm-svn: 164917
* Filter out tools and unittests which we don't want to build when we're ↵Bill Wendling2012-09-301-0/+5
| | | | | | building clang only. llvm-svn: 164916
* Remove this hack in favor of another, better way of performing the same thing.Bill Wendling2012-09-301-4/+0
| | | | llvm-svn: 164915
* Specify a full target in an attempt to appease buildbots.Bob Wilson2012-09-301-4/+4
| | | | llvm-svn: 164908
* Add Clang support for iOS6.Bob Wilson2012-09-2910-22/+151
| | | | llvm-svn: 164907
* Add ARM VFPv4 feature and enable it by default for Swift.Bob Wilson2012-09-291-16/+30
| | | | llvm-svn: 164906
OpenPOWER on IntegriCloud