summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* MS inline asm: When LLVM called back to Clang to parse a name and do nameDmitri Gribenko2013-12-032-14/+35
| | | | | | | | 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
* Refactored the work group-related attributes to use a template, which ↵Aaron Ballman2013-12-021-33/+10
| | | | | | reduces the amount of duplicate code in the handler. No functional change intended. llvm-svn: 196165
* Simplifying a test for duplicate vec_type_hint attributes. The assert and ↵Aaron Ballman2013-12-021-5/+1
| | | | | | attribute kind test were superfluous. No functional change intended. llvm-svn: 196162
* The CUDA device attribute doesn't need custom logic to check the number of ↵Aaron Ballman2013-12-021-14/+2
| | | | | | attribute arguments (the common attribute handler already does this). Switching to use the simple attribute handler. No functional change intended. llvm-svn: 196155
* [AArch64] Implemented vcopy_lane patterns using scalar DUP instruction.Chad Rosier2013-12-022-3/+56
| | | | | | Patch by Ana Pazos! llvm-svn: 196153
* [AArch64] Add missing NEON scalar floating-point to integer convert ACLEs.Chad Rosier2013-12-025-23/+121
| | | | llvm-svn: 196152
* Debug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.Manman Ren2013-12-021-1/+1
| | | | | | | Suggested by Eric. Paired commit with r196144. llvm-svn: 196145
* Expand comments for Debug Info Version.Manman Ren2013-12-021-1/+4
| | | | llvm-svn: 196143
* Rectifying style issues with generated code. No functional change intended.Aaron Ballman2013-12-021-4/+4
| | | | llvm-svn: 196142
* Automate attribute language option checking by specifying the list of ↵Aaron Ballman2013-12-025-157/+140
| | | | | | options to test in tablegen. llvm-svn: 196138
* ClangFormatPackage.cs: fix inconsistent line endingsHans Wennborg2013-12-021-1/+1
| | | | llvm-svn: 196131
* Factored attribute mutual exclusion code into a helper function; split the ↵Aaron Ballman2013-12-021-35/+37
| | | | | | cf_audited_transfer and cf_unknown_transfer attributes into separate helper methods for simplicity. No functional changes intended. llvm-svn: 196126
* clang-format vs plugin: use Alp's suggestion for getting the pathHans Wennborg2013-12-021-2/+2
| | | | llvm-svn: 196124
* Fix a typo in a comment: expasion -> expansionJames Dennett2013-12-021-1/+1
| | | | llvm-svn: 196123
* clang-format vs plugin: bake clang-format.exe into the vsixHans Wennborg2013-12-023-1/+11
| | | | | | | | | | | This makes the clang-format plugin self-contained. Instead of requiring clang-format.exe to be available on the PATH, this includes it in the plugin's installer (.vsix file) and runs it from the install directory. Differential Revision: http://llvm-reviews.chandlerc.com/D2281 llvm-svn: 196122
* Re-enabled support for the Subjects for the weak attribute. This changes the ↵Aaron Ballman2013-12-026-24/+16
| | | | | | 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
* Rewriter: Output RewriteRope contents efficientlyAlp Toker2013-12-022-3/+11
| | | | | | | | | This avoids allocation of temporary std::strings for file contents, instead writing chunks directly to the output stream. The old character-based B-tree iterator remains intact for the time being. llvm-svn: 196119
* The __w64 attribute handler was more generically named, but only applied to ↵Aaron Ballman2013-12-021-8/+4
| | | | | | __w64 specifically. Renamed and removed some unused code. No functional change intended. llvm-svn: 196116
* Assume ARMv6 for NetBSD for now for strex/ldrex.Joerg Sonnenberger2013-12-021-0/+1
| | | | llvm-svn: 196115
* NetBSD uses long derived size_t / ssize_t in all ARM ABIs.Joerg Sonnenberger2013-12-021-2/+4
| | | | llvm-svn: 196114
* The FieldDecl is already covered by the ValueDecl case, so it is being removed.Aaron Ballman2013-12-021-2/+0
| | | | llvm-svn: 196110
* Added an option to specify fallback style.Alexander Kornienko2013-12-024-16/+29
| | | | | | | | | | | | | | | | 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
* Switching the ibaction attribute handler to the generalized handler. No ↵Aaron Ballman2013-12-021-6/+2
| | | | | | functional change intended. llvm-svn: 196107
* Replacing custom subject application logic with table-generated logic. ↵Aaron Ballman2013-12-022-59/+17
| | | | | | Affects: guarded_var, pt_guarded_var, guarded_by, pt_guarded_by, acquired_after and acquired_before. No functional change intended. llvm-svn: 196105
* Using the proper set key when determining whether a SubsetSubject helper ↵Aaron Ballman2013-12-021-2/+3
| | | | | | method has been previously generated. llvm-svn: 196103
* Driver: Factor gold support out into a functionAlp Toker2013-12-021-39/+22
| | | | | | | | | AddGoldPlugin() is the same on gnutools and freebsd so avoid the copy-and-paste duplicate code. No change in functionality. llvm-svn: 196096
* clang-format: Fix excessive formatting caused by r195954.Daniel Jasper2013-12-022-0/+8
| | | | | | | Due to a bug in the patch, clang-format would more or less simply format all multi-line comments. llvm-svn: 196080
* Correct a user-visible static analyzer message typoAlp Toker2013-12-021-2/+2
| | | | llvm-svn: 196062
* Fix inconsistent diag nameAlp Toker2013-12-022-3/+3
| | | | llvm-svn: 196061
* 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-014-18/+36
| | | | | | | | 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-012-5/+12
| | | | | | | | 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
* Fix typo: s/Occurence/Occurrence/Alp Toker2013-11-302-5/+5
| | | | | | This is a private class member so the fix shouldn't impact external projects. llvm-svn: 195985
* Update the LeakSanitizer documentation with a proper link.Sergey Matveev2013-11-301-3/+2
| | | | llvm-svn: 195983
* 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
* NetBSD uses signed wchar_t on ARM platforms.Joerg Sonnenberger2013-11-301-2/+9
| | | | llvm-svn: 195970
* Refactored the tls_model attribute to use a custom subset subject. No ↵Aaron Ballman2013-11-292-7/+4
| | | | | | functional change intended. llvm-svn: 195964
* Using a custom subject to reenable the Subjects line for the ns_bridged ↵Aaron Ballman2013-11-292-7/+4
| | | | | | attribute. No functional change intended. llvm-svn: 195963
* Fixes a possible assert in the custom SubsetSubject logic for the attr emitter.Aaron Ballman2013-11-291-2/+3
| | | | llvm-svn: 195962
* Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.Alexander Kornienko2013-11-294-31/+311
| | | | | | | | | | | | | | | | 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-296-29/+68
| | | | | | the custom subject for the ibaction attribute. llvm-svn: 195960
* clang-format: Extends formatted ranges to subsequent lines comments.Daniel Jasper2013-11-292-13/+49
| | | | | | | | | | | | | | | | Before: int aaaa; // This line is formatted. // The comment continues .. // .. here. Before: int aaaa; // This line is formatted. // The comment continues .. // .. here. This fixes llvm.org/PR17914. llvm-svn: 195954
* clang-format: Correctly handle Qt's Q_SLOTS.Daniel Jasper2013-11-292-1/+4
| | | | | | This should fix llvm.org/PR17241. Maybe it sticks this time :-). llvm-svn: 195953
* clang-format: Fix bad indentation of nested blocks.Daniel Jasper2013-11-292-1/+19
| | | | | | | | | | | | | | | Before: DEBUG( // { f(); }); After: DEBUG( // { f(); }); Also add additional test to selected formatting of individual statements in nested blocks. llvm-svn: 195952
* AArch64: Two intrinsics are expected to return float64 not float32 in arm_neon.hHao Liu2013-11-292-5/+11
| | | | llvm-svn: 195943
* Fix the problem that the range check for scalar narrow shift is too wide.Hao Liu2013-11-294-47/+53
| | | | | | 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-292-1/+7
| | | | llvm-svn: 195940
* Add missing intrinsic function vcombine_f64 for AArch64 NEON.Jiangning Liu2013-11-292-1/+92
| | | | llvm-svn: 195937
* clang-format: Improve selective formatting of nested statements.Daniel Jasper2013-11-283-34/+112
| | | | | | | | | | Previously, clang-format could create quite corrupt formattings if individual lines of nested blocks (e.g. in "DEBUG({})" or lambdas) were used. With this patch, it tries to extend the formatted regions to leave around some reasonable format without always formatting the entire surrounding statement. llvm-svn: 195925
OpenPOWER on IntegriCloud