summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* [objc] Add a warning when a class that provides a designated initializer, ↵Argyrios Kyrtzidis2013-12-031-6/+8
| | | | | | | | does not override all of the designated initializers of its superclass. llvm-svn: 196319
* [objc] Emit warning when the implementation of a secondary initializer calls onArgyrios Kyrtzidis2013-12-031-3/+43
| | | | | | | | | | | super another initializer and when the implementation does not delegate to another initializer via a call on 'self'. A secondary initializer is an initializer method not marked as a designated initializer within a class that has at least one initializer marked as a designated initializer. llvm-svn: 196318
* [objc] Emit warnings when the implementation of a designated initializer ↵Argyrios Kyrtzidis2013-12-031-8/+17
| | | | | | | | calls on super an initializer that is not a designated one or any initializer on self. llvm-svn: 196317
* [objc] Emit a warning when the implementation of a designated initializer ↵Argyrios Kyrtzidis2013-12-031-0/+96
| | | | | | | | does not chain to an init method that is a designated initializer for the superclass. llvm-svn: 196316
* [objc] Introduce attribute 'objc_designated_initializer'.Argyrios Kyrtzidis2013-12-031-0/+32
| | | | | | It only applies to methods of init family in an interface declaration. llvm-svn: 196314
* Fix corner case in module-based layering warning.Daniel Jasper2013-12-031-1/+2
| | | | | | | | | | | Before, there SourceManager would not return a FileEntry for a SourceLocation of a macro expansion (if the header name itself is defined in a macro). We'd then fallback to assume that the module currently being built is the including module. However, in this case we are actually interested in the spelling location of the filename loc in order to derive the including module. llvm-svn: 196311
* Issue diagnostic when constructor or destructorFariborz Jahanian2013-12-031-0/+10
| | | | | | | return void expression. // rdar://15366494 pr17759. llvm-svn: 196296
* Check IR on this test.Rafael Espindola2013-12-031-10/+6
| | | | llvm-svn: 196287
* Check IR on this test.Rafael Espindola2013-12-031-9/+8
| | | | llvm-svn: 196286
* Check IR on this test.Rafael Espindola2013-12-031-8/+5
| | | | llvm-svn: 196285
* Check IR on this test.Rafael Espindola2013-12-031-10/+6
| | | | llvm-svn: 196284
* Check IR on this test.Rafael Espindola2013-12-031-11/+6
| | | | llvm-svn: 196282
* check IR in this testRafael Espindola2013-12-031-8/+5
| | | | llvm-svn: 196281
* check IR in this test.Rafael Espindola2013-12-031-12/+7
| | | | llvm-svn: 196280
* check IR in this test.Rafael Espindola2013-12-031-12/+7
| | | | llvm-svn: 196279
* Check IR in this test.Rafael Espindola2013-12-031-18/+10
| | | | llvm-svn: 196278
* Check IR in this test.Rafael Espindola2013-12-031-8/+5
| | | | llvm-svn: 196277
* Check IR in this test.Rafael Espindola2013-12-031-9/+5
| | | | llvm-svn: 196276
* Check IR instead of assembly in this test.Rafael Espindola2013-12-031-10/+5
| | | | llvm-svn: 196275
* clang-format: Explicitly set fallback style that is tested.Daniel Jasper2013-12-031-2/+2
| | | | llvm-svn: 196213
* Emit an extension warning when changing system header tokensAlp Toker2013-12-034-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | clang converts keywords to identifiers for compatibility with various system headers such as GNU libc. Implement a -Wkeyword-compat extension warning to diagnose those cases. The warning is on by default but will generally be ignored in system headers. It can however be enabled globally to aid standards conformance testing. This also changes the __uptr keyword avoidance from r195710 to no longer special-case system headers, bringing it in line with other similar workarounds in clang. Implementation returns bool for symmetry with token annotation functions. Some examples: warning: keyword '__is_pod' will be treated as an identifier for the remainder of the translation unit [-Wkeyword-compat] struct __is_pod warning: keyword '__uptr' will be treated as an identifier here [-Wkeyword-compat] union w *__uptr; llvm-svn: 196212
* [AArch64]Add missing floating point convert, round and misc intrinsics.Hao Liu2013-12-031-0/+168
| | | | | | E.g. int64x1_t vcvt_s64_f64(float64x1_t a) -> FCVTZS Dd, Dn llvm-svn: 196211
* AArch64: add missing ACLE intrinsics mapping to general arithmetic operation ↵Hao Liu2013-12-031-0/+90
| | | | | | | | from VFP instructions. E.g. float64x1_t vadd_f64(float64x1_t a, float64x1_t b) -> FADD Dd, Dn, Dm. llvm-svn: 196209
* Patch by Ana Pazos.Jiangning Liu2013-12-031-4/+3
| | | | | | Fixed vcopy_laneq_f64 intrinsic implementation. llvm-svn: 196206
* revert r196152. Hao Liu2013-12-032-80/+2
| | | | | | | | | | | | | | This is a duplicate implementation. E.g. this patch defines: float64_t vabd_f64(float64_t a, float64_t b) But there is already a similar intrinsic "vabdd_f64" with the same types. Also, this intrinsic will be conflicted to the vector type intrinsic as following(Which is implemented by me and will be committed to trunk): float64x1_t vabd_f64(float64x1_t a, float64x1_t b). Two functions shouldn't have a same name in arm_neon.h. According to ARM ACLE document, such vabd_f64 with float64_t is not existing. So I revert this commit. llvm-svn: 196205
* Test to ensure no old-style-cast warning is emitted for objc-arc __bridge castsAlp Toker2013-12-031-0/+11
| | | | llvm-svn: 196204
* AArch64: Add missing scalar pair intrinsics.Hao Liu2013-12-031-0/+97
| | | | | | E.g. "float32_t vaddv_f32(float32x2_t a)" to be matched into "faddp s0, v1.2s". llvm-svn: 196199
* Add some missing AArch64 Neon intrinsics like vuqadd_s64 and friends.Jiangning Liu2013-12-031-0/+36
| | | | llvm-svn: 196191
* Add some missing AArch64 Neon intrinsics like vmull_high_n_s16 and friends.Jiangning Liu2013-12-031-0/+149
| | | | llvm-svn: 196189
* MS inline asm: When LLVM called back to Clang to parse a name and do nameDmitri Gribenko2013-12-031-0/+18
| | | | | | | | lookup, if parsing failed, we did not restore the lexer state properly, and eventually crashed. This change ensures that we always consume all the tokens from the new token stream we started to parse the name from inline asm. llvm-svn: 196182
* [AArch64] Implemented vcopy_lane patterns using scalar DUP instruction.Chad Rosier2013-12-021-0/+53
| | | | | | Patch by Ana Pazos! llvm-svn: 196153
* [AArch64] Add missing NEON scalar floating-point to integer convert ACLEs.Chad Rosier2013-12-022-2/+80
| | | | llvm-svn: 196152
* Re-enabled support for the Subjects for the weak attribute. This changes the ↵Aaron Ballman2013-12-021-1/+3
| | | | | | diagnostic involved to be more accurate -- for C++ code, it will now report that weak applies to variables, functions or classes. Added additional test case for this. llvm-svn: 196120
* Added an option to specify fallback style.Alexander Kornienko2013-12-021-2/+3
| | | | | | | | | | | | | | | | Summary: Added -fallback-style option. Changed clang-format to stop searching for .clang-format when an invalid file is found. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2292 llvm-svn: 196108
* Correct test to target 'unknown'Alp Toker2013-12-021-1/+1
| | | | llvm-svn: 196060
* Handle CC and NoReturn when instantiating members of class templates.Rafael Espindola2013-12-011-0/+8
| | | | | | | | Before we were considering them only when instantiating templates. This fixes pr18033. llvm-svn: 196050
* CommentLexer: When proceeding with a typo corrected name don't clobber the ↵Benjamin Kramer2013-12-011-0/+6
| | | | | | | | token. This would crash if the token is used in another diagnostic. PR18051. llvm-svn: 196048
* Reenable ms inline asm test.Benjamin Kramer2013-12-011-6/+6
| | | | | | LLVM r196044 should make it pass. llvm-svn: 196045
* add an additional test case for generic attributesSaleem Abdulrasool2013-11-301-0/+2
| | | | | | | | gcc treats [[gnu:const]], [[gnu::__const]], and [[gnu:__const__]] as all being equivalent. Add an additional test case to ensure that we do not miss the last case. llvm-svn: 195982
* Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.Alexander Kornienko2013-11-291-0/+7
| | | | | | | | | | | | | | | | Summary: Use LS_JavaScript for files ending with ".js". Added support for ">>>=" operator. Reviewers: djasper, klimek Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2242 llvm-svn: 195961
* Enables support for custom subject lists for attributes. As a testbed, uses ↵Aaron Ballman2013-11-291-2/+2
| | | | | | the custom subject for the ibaction attribute. llvm-svn: 195960
* Fix the problem that the range check for scalar narrow shift is too wide.Hao Liu2013-11-291-36/+36
| | | | | | E.g. the immediate value of vshrns_n_s16 is [1,16], which should be [1,8]. llvm-svn: 195942
* Add missing intrinsic function vbsl_f64 for AArch64 NEON.Jiangning Liu2013-11-291-0/+6
| | | | llvm-svn: 195940
* Add missing intrinsic function vcombine_f64 for AArch64 NEON.Jiangning Liu2013-11-291-0/+91
| | | | llvm-svn: 195937
* Fix test on WindowsAlp Toker2013-11-281-2/+2
| | | | | | | | | | | | | 'not' on Windows tries and fails to convert the argument to UTF-16 and back for some reason: Error: Unable to convert command-line to UTF-16 Let's try replacing it with !. (There was no obvious way to do these with FileCheck) llvm-svn: 195907
* Ensure that the output BOM test check is runAlp Toker2013-11-281-1/+3
| | | | | | The first command's output was only reaching one of the two checks previously. llvm-svn: 195904
* Add a return statement to the func with an int return type.Kaelyn Uhrain2013-11-281-0/+1
| | | | llvm-svn: 195897
* One last portability fix attempt for r195886Alp Toker2013-11-271-2/+3
| | | | llvm-svn: 195891
* Attempt to make test from r195886 portable with different shellsAlp Toker2013-11-271-2/+2
| | | | | | | Windows and Hexagon complained. It's not clear which command is failing, so will back out the changes if this doesn't do the trick. llvm-svn: 195889
* Add support for C++'s SD6 feature test macros.Richard Smith2013-11-271-0/+89
| | | | llvm-svn: 195888
OpenPOWER on IntegriCloud