| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: hokein, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: aaron.ballman, cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D28671
llvm-svn: 298912
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: rsmith, rizsotto.mailinglist
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D31133
llvm-svn: 298490
|
|
|
|
|
|
|
|
|
|
|
| |
The alias was only ever used on darwin and had some issues there,
and isn't used in practice much. Also fixes a problem with -mno-altivec
not turning off -maltivec.
Also add a diagnostic for faltivec/fno-altivec that directs users to use
maltivec options and include the altivec.h file explicitly.
llvm-svn: 298449
|
|
|
|
|
|
|
|
| |
PR32346 suggests that UBSan's docs about the -fsanitize,
-fno-sanitize-recover, and -fsanitize-trap options are not explicit
enough. Try to improve the wording.
llvm-svn: 298310
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Proposal: Backward-edge CFI for return statements (RCFI)
Reviewers: pcc, eugenis, krasin
Reviewed By: eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D31112
llvm-svn: 298303
|
|
|
|
|
|
| |
... mostly having to do with code blocks which the syntax highlighter chokes on
llvm-svn: 298275
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: djasper
Reviewed By: djasper
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D30990
llvm-svn: 298245
|
|
|
|
|
|
|
|
|
| |
Expand a bit on private modules with some guidance on how to write
them in the context of frameworks.
rdar://problem/24758771
llvm-svn: 298012
|
|
|
|
|
|
|
|
| |
ObjCIvarDecl, and ObjCPropertyDecl.
Patch by Dave Lee.
llvm-svn: 297882
|
|
|
|
| |
llvm-svn: 297730
|
|
|
|
| |
llvm-svn: 297721
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Teach UBSan to detect when a value with the _Nonnull type annotation
assumes a null value. Call expressions, initializers, assignments, and
return statements are all checked.
Because _Nonnull does not affect IRGen, the new checks are disabled by
default. The new driver flags are:
-fsanitize=nullability-arg (_Nonnull violation in call)
-fsanitize=nullability-assign (_Nonnull violation in assignment)
-fsanitize=nullability-return (_Nonnull violation in return stmt)
-fsanitize=nullability (all of the above)
This patch builds on top of UBSan's existing support for detecting
violations of the nonnull attributes ('nonnull' and 'returns_nonnull'),
and relies on the compiler-rt support for those checks. Eventually we
will need to update the diagnostic messages in compiler-rt (there are
FIXME's for this, which will be addressed in a follow-up).
One point of note is that the nullability-return check is only allowed
to kick in if all arguments to the function satisfy their nullability
preconditions. This makes it necessary to emit some null checks in the
function body itself.
Testing: check-clang and check-ubsan. I also built some Apple ObjC
frameworks with an asserts-enabled compiler, and verified that we get
valid reports.
Differential Revision: https://reviews.llvm.org/D30762
llvm-svn: 297700
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D30860
llvm-svn: 297623
|
|
|
|
|
|
|
|
| |
class declaration.
Differential Revision: https://reviews.llvm.org/D30487
llvm-svn: 297467
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* by \*
Summary: For example, "int\* a;" is displayed instead of "int* a;"
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D30740
llvm-svn: 297363
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some of the magic functions take arguments of arbitrary type. However,
for semantic correctness, the compiler still requires a declaration
of these functions with the correct type. Since C does not have
argument-type-overloaded function, this made those functions hard to
use in C code. Improve this situation by allowing arbitrary suffixes
in the affected magic functions' names, thus allowing the user to
create different declarations for different types.
A patch by Keno Fischer!
Differential Revision: https://reviews.llvm.org/D30589
llvm-svn: 297325
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D30734
llvm-svn: 297275
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: klimek, djasper
Reviewed By: djasper
Subscribers: krasimir, kimgr, cfe-commits
Differential Revision: https://reviews.llvm.org/D30532
llvm-svn: 297025
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This patch enables namespace end comments under a new flag FixNamespaceComments,
which is enabled for the LLVM and Google styles.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D30405
llvm-svn: 296632
|
|
|
|
|
|
|
|
| |
does not catch UB.
https://reviews.llvm.org/D27455
llvm-svn: 296387
|
|
|
|
|
|
|
|
|
|
| |
Reviewers: silvas, rizsotto.mailinglist, sergio.martins
Reviewed By: rizsotto.mailinglist
Differential Revision: https://reviews.llvm.org/D30252
llvm-svn: 296098
|
|
|
|
| |
llvm-svn: 295433
|
|
|
|
|
|
|
|
|
| |
Added description of a new feature that allows to specify
vendor extension in flexible way using compiler pragma instead
of modifying source code directly (committed in clang@r289979).
Review: D29829
llvm-svn: 295313
|
|
|
|
|
|
| |
objc_storeStrong does not return a value.
llvm-svn: 294855
|
|
|
|
| |
llvm-svn: 294658
|
|
|
|
|
|
|
|
|
|
|
| |
preprocessor macros.
Added "-fdebug-macro" flag (and "-fno-debug-macro" flag) to enable (and to disable) emitting macro debug info.
Added CC1 "-debug-info-macro" flag that enables emitting macro debug info.
Differential Revision: https://reviews.llvm.org/D16135
llvm-svn: 294637
|
|
|
|
|
|
|
|
|
| |
Point out that --coverage and -ftest-coverage, which is what most people
are used to, do not enable clang's frontend based coverage pass.
Suggested by Benn Bolay!
llvm-svn: 294626
|
|
|
|
|
|
|
|
| |
Summary: Documentation update for https://reviews.llvm.org/D29662
Differential Revision: https://reviews.llvm.org/D29722
llvm-svn: 294522
|
|
|
|
|
|
| |
__PREFETCHWT1__ define to match gcc.
llvm-svn: 294424
|
|
|
|
| |
llvm-svn: 294423
|
|
|
|
|
|
| |
forgot in my previous commits.
llvm-svn: 294420
|
|
|
|
| |
llvm-svn: 294419
|
|
|
|
|
|
| |
__CLFLUSHOPT__ define to match gcc.
llvm-svn: 294411
|
|
|
|
|
|
| |
NFC.
llvm-svn: 293877
|
|
|
|
|
|
| |
Also accept -G= (and -msmall-data-threshold=) as an alias for -G on MIPS as well as Hexagon.
llvm-svn: 293254
|
|
|
|
|
|
| |
containing '+', '.' etc. to be more stable as the set of options changes.
llvm-svn: 293252
|
|
|
|
| |
llvm-svn: 293065
|
|
|
|
|
|
|
| |
and generate documentation for all (non-hidden) options supported by the
'clang' driver.
llvm-svn: 292968
|
|
|
|
|
|
| |
'if' by default. Update the docs, also add deprecation notes around other parts of sanitizer coverage
llvm-svn: 292862
|
|
|
|
| |
llvm-svn: 292811
|
|
|
|
|
|
| |
generation of this set up server-side yet.
llvm-svn: 292637
|
|
|
|
| |
llvm-svn: 292595
|
|
|
|
| |
llvm-svn: 292559
|
|
|
|
| |
llvm-svn: 292558
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Docs for clang::Decl and clang::TemplateSpecializationType have
not been generated since LLVM_ALIGNAS was added to them.
Tell Doxygen to expand LLVM_ALIGNAS to nothing as described at
https://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html
Reviewers: aaron.ballman, klimek, alexfh
Subscribers: ioeric, cfe-commits
Differential Revision: https://reviews.llvm.org/D28850
llvm-svn: 292477
|
|
|
|
| |
llvm-svn: 292265
|
|
|
|
| |
llvm-svn: 292115
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Add missing flag to UsersManual
It would be good to merge it to 4.0 branch.
Reviewers: hans
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D28727
llvm-svn: 292112
|
|
|
|
| |
llvm-svn: 292015
|
|
|
|
| |
llvm-svn: 291939
|