Alp Toker
d505d40360
Rewriter: Output RewriteRope contents efficiently
...
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
2013-12-02 17:02:49 +00:00
Aaron Ballman
5010a76fe2
The __w64 attribute handler was more generically named, but only applied to __w64 specifically. Renamed and removed some unused code. No functional change intended.
...
llvm-svn: 196116
2013-12-02 16:17:55 +00:00
Joerg Sonnenberger
fbd51bef13
Assume ARMv6 for NetBSD for now for strex/ldrex.
...
llvm-svn: 196115
2013-12-02 16:12:05 +00:00
Joerg Sonnenberger
7c7fcec329
NetBSD uses long derived size_t / ssize_t in all ARM ABIs.
...
llvm-svn: 196114
2013-12-02 16:09:34 +00:00
Aaron Ballman
7a47bb0397
The FieldDecl is already covered by the ValueDecl case, so it is being removed.
...
llvm-svn: 196110
2013-12-02 15:31:50 +00:00
Alexander Kornienko
bc4ae44928
Added an option to specify fallback style.
...
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
2013-12-02 15:21:38 +00:00
Aaron Ballman
9beb517307
Switching the ibaction attribute handler to the generalized handler. No functional change intended.
...
llvm-svn: 196107
2013-12-02 15:13:14 +00:00
Aaron Ballman
e61b8b816a
Replacing custom subject application logic with table-generated logic. Affects: guarded_var, pt_guarded_var, guarded_by, pt_guarded_by, acquired_after and acquired_before. No functional change intended.
...
llvm-svn: 196105
2013-12-02 15:02:49 +00:00
Aaron Ballman
a358c9051e
Using the proper set key when determining whether a SubsetSubject helper method has been previously generated.
...
llvm-svn: 196103
2013-12-02 14:58:17 +00:00
Alp Toker
ce365ca0f4
Driver: Factor gold support out into a function
...
AddGoldPlugin() is the same on gnutools and freebsd so avoid the
copy-and-paste duplicate code.
No change in functionality.
llvm-svn: 196096
2013-12-02 12:43:03 +00:00
Daniel Jasper
0e81f1ad43
clang-format: Fix excessive formatting caused by r195954.
...
Due to a bug in the patch, clang-format would more or less simply format
all multi-line comments.
llvm-svn: 196080
2013-12-02 09:19:27 +00:00
Alp Toker
5faf0c00dc
Correct a user-visible static analyzer message typo
...
llvm-svn: 196062
2013-12-02 03:50:25 +00:00
Alp Toker
fff0674ae0
Fix inconsistent diag name
...
llvm-svn: 196061
2013-12-02 03:50:21 +00:00
Alp Toker
99416d3ef2
Correct test to target 'unknown'
...
llvm-svn: 196060
2013-12-02 03:50:16 +00:00
Rafael Espindola
6edca7d9bd
Handle CC and NoReturn when instantiating members of class templates.
...
Before we were considering them only when instantiating templates.
This fixes pr18033.
llvm-svn: 196050
2013-12-01 16:54:29 +00:00
Benjamin Kramer
2dece5747a
CommentLexer: When proceeding with a typo corrected name don't clobber the token.
...
This would crash if the token is used in another diagnostic. PR18051.
llvm-svn: 196048
2013-12-01 15:09:32 +00:00
Benjamin Kramer
6b7247263f
Reenable ms inline asm test.
...
LLVM r196044 should make it pass.
llvm-svn: 196045
2013-12-01 11:48:10 +00:00
Alp Toker
54ee53a0c4
Fix typo: s/Occurence/Occurrence/
...
This is a private class member so the fix shouldn't impact external projects.
llvm-svn: 195985
2013-11-30 23:33:14 +00:00
Sergey Matveev
3422543391
Update the LeakSanitizer documentation with a proper link.
...
llvm-svn: 195983
2013-11-30 21:54:43 +00:00
Saleem Abdulrasool
73196baef4
add an additional test case for generic attributes
...
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
2013-11-30 21:17:12 +00:00
Joerg Sonnenberger
84c7ca8851
NetBSD uses signed wchar_t on ARM platforms.
...
llvm-svn: 195970
2013-11-30 00:38:16 +00:00
Aaron Ballman
5b0481a398
Refactored the tls_model attribute to use a custom subset subject. No functional change intended.
...
llvm-svn: 195964
2013-11-29 16:20:30 +00:00
Aaron Ballman
f7cd09a047
Using a custom subject to reenable the Subjects line for the ns_bridged attribute. No functional change intended.
...
llvm-svn: 195963
2013-11-29 16:13:12 +00:00
Aaron Ballman
4cfafb9a85
Fixes a possible assert in the custom SubsetSubject logic for the attr emitter.
...
llvm-svn: 195962
2013-11-29 16:12:29 +00:00
Alexander Kornienko
cabdd738fc
Added LanguageStandard::LS_JavaScript to gate all JS-specific parsing.
...
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
2013-11-29 15:19:43 +00:00
Aaron Ballman
80469038c0
Enables support for custom subject lists for attributes. As a testbed, uses the custom subject for the ibaction attribute.
...
llvm-svn: 195960
2013-11-29 14:57:58 +00:00
Daniel Jasper
38c82408a7
clang-format: Extends formatted ranges to subsequent lines comments.
...
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
2013-11-29 09:27:43 +00:00
Daniel Jasper
1556b59338
clang-format: Correctly handle Qt's Q_SLOTS.
...
This should fix llvm.org/PR17241. Maybe it sticks this time :-).
llvm-svn: 195953
2013-11-29 08:51:56 +00:00
Daniel Jasper
e40caf9ad2
clang-format: Fix bad indentation of nested blocks.
...
Before:
DEBUG( //
{ f(); });
After:
DEBUG( //
{ f(); });
Also add additional test to selected formatting of individual statements
in nested blocks.
llvm-svn: 195952
2013-11-29 08:46:20 +00:00
Hao Liu
46a6ed9e64
AArch64: Two intrinsics are expected to return float64 not float32 in arm_neon.h
...
llvm-svn: 195943
2013-11-29 02:31:42 +00:00
Hao Liu
8a0099e02c
Fix the problem that the range check for scalar narrow shift is too wide.
...
E.g. the immediate value of vshrns_n_s16 is [1,16], which should be [1,8].
llvm-svn: 195942
2013-11-29 02:13:17 +00:00
Jiangning Liu
24173dd4b1
Add missing intrinsic function vbsl_f64 for AArch64 NEON.
...
llvm-svn: 195940
2013-11-29 01:38:49 +00:00
Jiangning Liu
c8a9d762d3
Add missing intrinsic function vcombine_f64 for AArch64 NEON.
...
llvm-svn: 195937
2013-11-29 01:29:57 +00:00
Daniel Jasper
9c19956845
clang-format: Improve selective formatting of nested statements.
...
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
2013-11-28 15:58:55 +00:00
Alp Toker
3dfeafd9db
InclusionRewriter: Avoid duplicated BOM check
...
The lexer already knows its position in the file, so use that instead of
guessing it might be 3.
llvm-svn: 195910
2013-11-28 07:21:44 +00:00
Alp Toker
6a7f41f0ec
Fix test on Windows
...
'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
2013-11-28 05:55:40 +00:00
David Majnemer
fd9afda636
Sema: Assert that there are no pending local instantiations left
...
This should have been part of r195887, not sure how it slipped through
the cracks.
llvm-svn: 195906
2013-11-28 01:45:16 +00:00
Alp Toker
49d9221098
Ensure that the output BOM test check is run
...
The first command's output was only reaching one of the two checks previously.
llvm-svn: 195904
2013-11-28 01:22:29 +00:00
Kaelyn Uhrain
297a1381ad
Add a return statement to the func with an int return type.
...
llvm-svn: 195897
2013-11-28 00:13:38 +00:00
Alp Toker
6de7cd1672
One last portability fix attempt for r195886
...
llvm-svn: 195891
2013-11-27 23:29:37 +00:00
Alp Toker
d57e836447
Attempt to make test from r195886 portable with different shells
...
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
2013-11-27 23:16:06 +00:00
Richard Smith
91e474fc91
Add support for C++'s SD6 feature test macros.
...
llvm-svn: 195888
2013-11-27 22:58:16 +00:00
David Majnemer
fd6c685f2e
Sema: Instantiation of variable definitions weren't local enough
...
We wouldn't properly save and restore the pending local instantiations
we had built up prior to instantiation of a variable definition. This
would lead to us instantiating too much causing crashes and other
general badness.
This fixes PR14374.
llvm-svn: 195887
2013-11-27 22:57:44 +00:00
Alp Toker
e3d6bcf5e0
Improve BOM test from r195877
...
1) Use %clang_cc1 instead of the driver
2) Validate that the input contains a BOM
3) Validate that the BOM has been stripped from the output
llvm-svn: 195886
2013-11-27 22:54:04 +00:00
Lubos Lunak
c6b9270d04
strip UTF-8 BOM in -frewrite-includes (PR#15664)
...
llvm-svn: 195877
2013-11-27 21:14:43 +00:00
Benjamin Kramer
72e5b93b82
Remove unused diagnostic.
...
llvm-svn: 195876
2013-11-27 20:19:11 +00:00
Aaron Ballman
c1494bddc1
Renaming Struct to GenericRecord for clarity; could not use Record as the enumerant because that's already taken by the Record class.
...
llvm-svn: 195875
2013-11-27 20:14:30 +00:00
Alp Toker
ba294d73a1
Bring back a StringRef used in some build configurations
...
This was removed in the great unused local cleanup of r195814.
Adding cast-to-void to suppress unused variable warnings.
Should fix certain builds like ARCMT.
llvm-svn: 195872
2013-11-27 19:44:04 +00:00
Aaron Ballman
57ede3bd80
Converts the lockable attributes to use the simple attribute handler because the semantic checking was already automated.
...
llvm-svn: 195866
2013-11-27 19:35:27 +00:00
Aaron Ballman
17046b8506
Automated checking for C++ when determining what argument to send to the diagnostic for attribute subjects. In turn, this allows the Subjects to be enabled for some more attributes and improves diagnostics. Updated a test case based on the improved diagnostic.
...
llvm-svn: 195864
2013-11-27 19:16:55 +00:00