summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix PR13389 (Wrong mangling of return type qualifiers with -cxx-abi microsoft)Timur Iskhodzhanov2012-07-261-0/+173
| | | | llvm-svn: 160780
* Removed standalone clang-ast-dump tool.Alexander Kornienko2012-07-262-23/+2
| | | | llvm-svn: 160772
* [analyzer] Inline ObjC class methods.Anna Zaks2012-07-261-0/+133
| | | | | | | | | | - Some cleanup(the TODOs) will be done after ObjC method inlining is complete. - Simplified CallEvent::getDefinition not to require ISDynamicDispatch parameter. - Also addressed Jordan's comments from r160530. llvm-svn: 160768
* Add static analyzer check for calling a C++ instance method with a ↵Ted Kremenek2012-07-261-0/+21
| | | | | | null/uninitialized pointer. llvm-svn: 160767
* Disable the warning for missing prototypes for OpenCL kernels. Includes ↵Tanya Lattner2012-07-261-0/+6
| | | | | | testcase. llvm-svn: 160766
* Update ExprEngine's handling of ternary operators to find the ternary expressionTed Kremenek2012-07-251-0/+7
| | | | | | | | value by scanning the path, rather than assuming we have visited the '?:' operator as a terminator (which sets a value indicating which expression to grab the final ternary expression value from). llvm-svn: 160760
* Remove experimental invalid iterators checker from the codebase until we ↵Ted Kremenek2012-07-251-110/+0
| | | | | | | | | have the time to fix all the issues. Currently the code is essentially unmaintained and buggy, and needs major revision (with coupled enhancements to the analyzer core). llvm-svn: 160754
* [driver crash diagnostics] Strip -internal-isystem and ↵Chad Rosier2012-07-251-0/+3
| | | | | | | | -internal-externc-isystem. rdar://11949066 llvm-svn: 160752
* [driver crash diagnostics] Strip -idirafter, -iprefix, -iwithprefix,Chad Rosier2012-07-251-1/+8
| | | | | | | -iwithprefixbefore, and -isystem options, per Matt's suggestion. rdar://11949066 llvm-svn: 160750
* [driver crash diagnostics] A few enhancements:Chad Rosier2012-07-251-2/+6
| | | | | | | | | -Strip -iquote and -M options. -Quote -D options to avoid problems with command line macros that include parens. rdar://11949066 llvm-svn: 160743
* libclang comment to HTML rendering: \result is the same as \returnsDmitri Gribenko2012-07-251-30/+45
| | | | llvm-svn: 160738
* test/PCH/objc_stmts.m: Suppress stderr to be fed to FileCheck.NAKAMURA Takumi2012-07-251-2/+2
| | | | llvm-svn: 160720
* test/Analysis/iterators.cpp: Mark as REQUIRES:asserts. It crashes due to ↵NAKAMURA Takumi2012-07-251-0/+2
| | | | | | | | assertion failure. I saw the case it XPASSes. llvm-svn: 160715
* Turn -Wobjc-root-class on by default. <rdar://problem/11203649>.Ted Kremenek2012-07-259-10/+10
| | | | llvm-svn: 160707
* Promote warn_unknown_analyzer_checker to an error. Addresses ↵Ted Kremenek2012-07-251-3/+3
| | | | | | <rdar://problem/10987863>. llvm-svn: 160706
* PR12057: Allow variadic template pack expansions to cross lambda boundaries.Richard Smith2012-07-253-3/+96
| | | | | | | | | | Rather than adding a ContainsUnexpandedParameterPack bit to essentially every AST node, we tunnel the bit directly up to the surrounding lambda expression when we reach a context where an unexpanded pack can not normally appear. Thus any statement or declaration within a lambda can now potentially contain an unexpanded parameter pack. llvm-svn: 160705
* Comment parsing tests: fix testDmitri Gribenko2012-07-241-1/+1
| | | | llvm-svn: 160700
* Add __has_feature(attribute_availability_with_message).Jordan Rose2012-07-241-0/+6
| | | | | | | | | | | | | | | | | This tests for the ability to include a "message" field in availability attributes, like so: extern void ATSFontGetName(const char *oName) __attribute__((availability(macosx,introduced=8.0,deprecated=9.0, message="use CTFontCopyFullName"))); This was actually supported in Clang 3.1, but we got a request for a __has_feature so that header files can use this more safely. It's unfortunate that the 3.1 release doesn't include this, however. <rdar://problem/11886458> llvm-svn: 160699
* Comment diagnostics tests: add a function with zero arguments, for completeness.Dmitri Gribenko2012-07-241-6/+10
| | | | llvm-svn: 160697
* Comment diagnostics: add warning for multiple \param commands with duplicateDmitri Gribenko2012-07-241-0/+12
| | | | | | parameter names. llvm-svn: 160696
* When a && or || appears as the condition of a ?:, perform appropriateRichard Smith2012-07-241-0/+5
| | | | | | | | | short-circuiting when building the CFG. Also be sure to skip parens before checking for the && / || special cases. Finally, fix some crashes in CFG printing in the presence of calls to destructors for array of array of class type. llvm-svn: 160691
* Pedantic -pedantic correction. Duplicate cv-qualifiers are permitted in C++11Richard Smith2012-07-241-0/+3
| | | | | | unless they appear in a decl-specifier-seq. llvm-svn: 160688
* Don't use a temporary file.Rafael Espindola2012-07-241-2/+1
| | | | llvm-svn: 160686
* Tweak warning text for returning incomplete type from extern "C" functions.Hans Wennborg2012-07-241-0/+2
| | | | | | | | | | A warning was added in r150128 for returning non-C compatible user-defined types from functions with C linkage. This makes the text more clear for the case when the type isn't decidedly non-C compatible, but incomplete. llvm-svn: 160681
* Fix PR13207 (Mangling of templates with back references when using -cxx-abi ↵Timur Iskhodzhanov2012-07-241-24/+65
| | | | | | microsoft) llvm-svn: 160667
* clang/test/CodeGenCXX/debug-info-globalinit.cpp: Fix for -Asserts.NAKAMURA Takumi2012-07-241-4/+4
| | | | llvm-svn: 160660
* Emit debug info for dynamic initializers. Permit __attribute__((nodebug)) onNick Lewycky2012-07-245-19/+51
| | | | | | | variables that have static storage duration, it removes debug info on the emitted initializer function but not all debug info about this variable. llvm-svn: 160659
* Do not warn about a function decl / direct init ambiguity if the function ↵Richard Smith2012-07-231-1/+3
| | | | | | has a trailing return type. llvm-svn: 160646
* libclang comments AST: clang_ParamCommandComment_getParamName: don't assertDmitri Gribenko2012-07-231-24/+34
| | | | | | | when a \param command does not have a parameter name, just return an empty string instead. llvm-svn: 160638
* Comment AST: add InlineContentComment::RenderKind to specify a defaultDmitri Gribenko2012-07-231-6/+6
| | | | | | | | rendering mode for clients that don't want to interpret Doxygen commands. Also add a libclang API to query this information. llvm-svn: 160633
* Follow-up: fix the quotesTimur Iskhodzhanov2012-07-231-3/+3
| | | | llvm-svn: 160626
* Replace wrong CHECK array mangling expectations with correct CHECK-NOT+FIXME ↵Timur Iskhodzhanov2012-07-231-4/+9
| | | | | | (PR13182) llvm-svn: 160625
* Fix a typo (the the => the)Sylvestre Ledru2012-07-233-3/+3
| | | | llvm-svn: 160622
* Add diagnostics for comma at end of enum and for extra semicolon at namespaceRichard Smith2012-07-235-16/+41
| | | | | | | | scope to -Wc++11-extensions. Move extra semicolon after member function definition diagnostic out of -pedantic, since C++ allows a single semicolon there. Keep it in -Wextra-semi, though, since it's still questionable. llvm-svn: 160618
* When we have an Objective-C object with non-trivial lifetime in aDouglas Gregor2012-07-231-0/+45
| | | | | | | | structor class under ARC, that struct/class does not have a trivial move constructor or move assignment operator. Fixes the rest of <rdar://problem/11738725>. llvm-svn: 160615
* PR12917: Remove incorrect assumption that lambda mangling information cannotRichard Smith2012-07-221-6/+29
| | | | | | | | | | change once it's been assigned. It can change in two ways: 1) In a template instantiation, the context declaration should be the instantiated declaration, not the declaration in the template. 2) If a lambda appears in the pattern of a variadic pack expansion, the mangling number will depend on the pack length. llvm-svn: 160614
* Allow the parser to recover gracefully if a typename is used to introduce a ↵Francois Pichet2012-07-221-0/+2
| | | | | | | | | | decltype type. In Microsoft mode, we emit a warning instead of an error. This fixes a couple of errors when parsing the MSVC 11 RC headers with clang. llvm-svn: 160613
* char16_t and char32_t are defined via typedef in MSVC 11 RC. So introduce a ↵Francois Pichet2012-07-221-0/+2
| | | | | | way to disable keywords under Microsoft mode. llvm-svn: 160612
* Comment to HTML conversion: add more CSS classes to identify function argumentsDmitri Gribenko2012-07-211-6/+6
| | | | | | | by index. This is useful if the user does not document all arguments, and we can't find a particular argument by index via :nth-of-type() CSS selector. llvm-svn: 160595
* Rename -fms-inline-asm to -fenable-experimental-ms-inline-asm.Chad Rosier2012-07-201-2/+2
| | | | llvm-svn: 160590
* Add "long double" to permitted list of ARM complex homogeneous aggregates.Tim Northover2012-07-201-0/+7
| | | | | | | Under AAPCS, long double is the same as double, which means it should be allowed as part of a homogeneous aggregate. llvm-svn: 160586
* Add libclang APIs to walk comments ASTs and an API to convert a comment to anDmitri Gribenko2012-07-201-0/+333
| | | | | | | | | | | HTML fragment. For testing, c-index-test now has even more output: * HTML rendering of a comment * comment AST tree dump in S-expressions like Comment::dump(), but implemented * with libclang APIs. llvm-svn: 160577
* Add a new flag, -fms-inline-asm, that enables the output of MS-style inlineChad Rosier2012-07-201-0/+3
| | | | | | | | | | | assembly. By default, we don't emit IR for MS-style inline assembly (see r158833 as to why). This is strictly for testing purposes and should not be enabled with the expectation that things will work. This is a temporary flag and will be removed once MS-style inline assembly is fully supported. llvm-svn: 160573
* No longer assuming the number of prototype arguments is always less than the ↵Aaron Ballman2012-07-201-0/+5
| | | | | | number of formal parameters for a variadic function call. llvm-svn: 160570
* Fix PR13411: Comment parsing: failed assertion on unterminated verbatim block.Dmitri Gribenko2012-07-201-0/+6
| | | | | | | | | | The assertion was wrong in case we have a verbatim block without a closing command. Also add tests for closing command name in a verbatim block, since now it can be empty in such cases. llvm-svn: 160568
* Re-apply r160319 "Don't crash when emitting fixits following Unicode chars"Jordan Rose2012-07-201-1/+19
| | | | | | | | | This time, make sure we don't try to print fixits with newline characters, since they don't have a valid column width, and they don't look good anyway. PR13417 (and originally <rdar://problem/11877454>) llvm-svn: 160561
* Don't need to specify the abi as it's the default.Eric Christopher2012-07-201-1/+1
| | | | | | rdar://11842763 llvm-svn: 160554
* Fixes an ObjC++ parse crash caused by delayed parsingFariborz Jahanian2012-07-201-0/+4
| | | | | | | | of c-functions nested in namespace in method implementations by turning off its delayed parsing until a proper solution is figured out. pr13418 llvm-svn: 160552
* CommentBriefParser: use \returns if we can't find the \brief or just a plainDmitri Gribenko2012-07-201-0/+10
| | | | | | paragraph. llvm-svn: 160550
* Revert r160319, it caused PR13417. Add a test for PR13417.Nico Weber2012-07-202-19/+9
| | | | llvm-svn: 160542
OpenPOWER on IntegriCloud