[PATCH] D41880: Adding nocf_check attribute for cf-protection fine tuning

2018-02-27 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon updated this revision to Diff 136235. oren_ben_simhon added a comment. Implemented commented posted by Aaron (Thanks) Repository: rL LLVM https://reviews.llvm.org/D41880 Files: include/clang/AST/Type.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td includ

[PATCH] D39562: [CodeGen][ObjC] Fix an assertion failure caused by copy elision

2018-02-27 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Any updates here? We were hitting a similar error internally, which this patch fixed. https://reviews.llvm.org/D39562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[PATCH] D41228: [ObjC] Enable __strong pointers in structs under ARC

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326307: [ObjC] Allow declaring __strong pointer fields in structs in Objective-C (authored by ahatanak, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.

[PATCH] D43737: Improve -Winfinite-recursion

2018-02-27 Thread Robert Widmann via Phabricator via cfe-commits
CodaFi added a comment. > Can you explain the new algorithm for checking recursive calls? The idea is to de-clutter as much of the existing algorithm as possible. The state dictionary is done away with now in favor of just not enqueueing successors of CFG blocks that have recursive calls. Giv

[PATCH] D43737: Improve -Winfinite-recursion

2018-02-27 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu added inline comments. Comment at: lib/Sema/AnalysisBasedWarnings.cpp:255-257 // If the exit block is unreachable, skip processing the function. if (cfg->getExit().pred_empty()) return; This is likely what is causing my previous code example to

[PATCH] D43737: Improve -Winfinite-recursion

2018-02-27 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu added a comment. Can you explain the new algorithm for checking recursive calls? From the test, this code looks like what you are testing for, but it doesn't trigger the warning. void f() { while(true) { f(); } } https://reviews.llvm.org/D43737 ___

[PATCH] D43322: Diagnose cases of "return x" that should be "return std::move(x)" for efficiency

2018-02-27 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu added a comment. > I have one very minor nit that I don't know how to fix: > > warn-return-std-move.cpp:220:12: warning: local variable 'd' will be copied > despite being returned by name [-Wreturn-std-move] > return (d); // e17 > ^ > warn-return-std-move.

[PATCH] D41517: mmintrin.h documentation fixes and updates

2018-02-27 Thread Douglas Yung via Phabricator via cfe-commits
dyung marked an inline comment as done. dyung added inline comments. Comment at: lib/Headers/mmintrin.h:55 /// -/// This intrinsic corresponds to the VMOVD / MOVD instruction. +/// This intrinsic corresponds to the MOVD instruction. /// efriedma wrote: > RK

[PATCH] D41517: mmintrin.h documentation fixes and updates

2018-02-27 Thread Douglas Yung via Phabricator via cfe-commits
dyung updated this revision to Diff 136221. dyung added a comment. Updated documentation for instruction generated for _mm_cvtsi32_si64, _mm_cvtsi64_si32, _mm_cvtsi64_m64 and _mm_cvtm64_si64 based on feedback. https://reviews.llvm.org/D41517 Files: lib/Headers/mmintrin.h Index: lib/Headers

r326298 - Update cxx_status to mark "SVN" items as "Clang 6" instead.

2018-02-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 27 19:02:07 2018 New Revision: 326298 URL: http://llvm.org/viewvc/llvm-project?rev=326298&view=rev Log: Update cxx_status to mark "SVN" items as "Clang 6" instead. Modified: cfe/trunk/www/cxx_status.html cfe/trunk/www/make_cxx_dr_status Modified: cfe/trunk/ww

r326299 - Fix a couple of cases where we would fail to correctly parse deduced class template specialization types.

2018-02-27 Thread Richard Smith via cfe-commits
Author: rsmith Date: Tue Feb 27 19:02:23 2018 New Revision: 326299 URL: http://llvm.org/viewvc/llvm-project?rev=326299&view=rev Log: Fix a couple of cases where we would fail to correctly parse deduced class template specialization types. Specifically, we would not properly parse these types wit

[PATCH] D43852: [OpenMP] Extend NVPTX SPMD implementation of combined constructs

2018-02-27 Thread Carlo Bertolli via Phabricator via cfe-commits
carlo.bertolli created this revision. carlo.bertolli added a reviewer: ABataev. Herald added subscribers: guansong, jholewinski. This patch extends the SPMD implementation to all target constructs and guards this implementation under a new flag. Repository: rC Clang https://reviews.llvm.org/

[PATCH] D43847: [clang-tidy] Add check: replace string::find(...) == 0 with absl::StartsWith

2018-02-27 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. std::basic_string::starts_with() was suggested for C++20. May be will be good idea to generalize code to create absl and modernize checks? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43847 ___ cfe

[PATCH] D43847: [tidy] Add check: replace string::find(...) == 0 with absl::StartsWith

2018-02-27 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. Please add new module in docs/clang-tidy/index.rst and mention it in release notes. Comment at: clang-tidy/absl/AbslTidyModule.cpp:14 +#include "StringFindStartswithCheck.h" +using namespace clang::ast_matchers; + Please separat

r326295 - [analyzer] [tests] Write to logfile instead of stdout while updating

2018-02-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Feb 27 17:55:23 2018 New Revision: 326295 URL: http://llvm.org/viewvc/llvm-project?rev=326295&view=rev Log: [analyzer] [tests] Write to logfile instead of stdout while updating reference results Modified: cfe/trunk/utils/analyzer/SATestUpdateDiffs.py Modif

[PATCH] D43847: [tidy] Add check: replace string::find(...) == 0 with absl::StartsWith

2018-02-27 Thread Niko Weh via Phabricator via cfe-commits
niko created this revision. niko added reviewers: ioeric, hokein. Herald added subscribers: cfe-commits, mgorny. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43847 Files: clang-tidy/CMakeLists.txt clang-tidy/absl/AbslTidyModule.cpp clang-tidy/absl/CMakeLists.txt clang-t

r326292 - [StaticAnalyzer] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).

2018-02-27 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Tue Feb 27 17:10:04 2018 New Revision: 326292 URL: http://llvm.org/viewvc/llvm-project?rev=326292&view=rev Log: [StaticAnalyzer] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). Modified: cfe/trunk/include/clang/StaticAnaly

Buildbot numbers for the week of 2/18/2018 - 2/24/2018

2018-02-27 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 2/18/2018 - 2/24/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed

Buildbot numbers for the week of 2/11/2018 - 2/17/2018

2018-02-27 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 2/11/2018 - 2/17/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed to r

Buildbot numbers for the week of 2/04/2018 - 2/10/2018

2018-02-27 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 2/04/2018 - 2/10/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed to r

[PATCH] D43842: CodeGenObjCXX: handle inalloca appropriately for msgSend variant

2018-02-27 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd created this revision. compnerd added reviewers: rjmccall, rnk. objc_msgSend_stret takes a hidden parameter for the returned structure's address for the construction. When the function signature is rewritten for the inalloca passing, the return type is no longer marked as indirect but ra

r326278 - AMDGPU: Move run and check lines around to match processor order in AMDGPU.h

2018-02-27 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Tue Feb 27 16:27:00 2018 New Revision: 326278 URL: http://llvm.org/viewvc/llvm-project?rev=326278&view=rev Log: AMDGPU: Move run and check lines around to match processor order in AMDGPU.h Modified: cfe/trunk/test/Driver/amdgpu-mcpu.cl Modified: cfe/trunk/test/Driver/a

[PATCH] D43841: Add an option to disable tail-call optimization for escaping blocks

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak created this revision. ahatanak added a reviewer: rjmccall. This patch adds a command line option (-fdisable-tail-calls-esca ping-blocks) that annotates escaping block invoke functions with attribute "disable-tail-calls". This is an option that helps users in debugging their code who sp

[PATCH] D43840: [CFG] [analyzer] Fix a crash on finding construction context for implicit constructor conversion.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet. Herald added subscribers: cfe-commits, rnkovacs. While landing https://reviews.llvm.org/D43428 as https://reviews.llvm.org/rC325966, i caused an internal compiler error of an MSVC 2015 comp

[PATCH] D43839: Add an option to disable tail-call optimization for escaping blocks

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak abandoned this revision. ahatanak added a comment. I'm going to send this patch again so that people can read the summary. https://reviews.llvm.org/D43839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[PATCH] D43839: Add an option to disable tail-call optimization for escaping blocks

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a subscriber: cfe-commits. ahatanak added a comment. Add cfe-commits to subscribers. https://reviews.llvm.org/D43839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r326272 - Inline trivial function. NFC.

2018-02-27 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Tue Feb 27 16:14:18 2018 New Revision: 326272 URL: http://llvm.org/viewvc/llvm-project?rev=326272&view=rev Log: Inline trivial function. NFC. Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp URL: http://llvm.org/viewvc/llvm-pro

r326270 - Pass a GlobalDecl to setAliasAttributes. NFC.

2018-02-27 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Tue Feb 27 16:06:01 2018 New Revision: 326270 URL: http://llvm.org/viewvc/llvm-project?rev=326270&view=rev Log: Pass a GlobalDecl to setAliasAttributes. NFC. This just makes a followup change easier to read. Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp cfe/trunk/lib/Cod

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Committed in r326266. https://reviews.llvm.org/D43748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r326266 - Improve the way attribute argument printing happens for omitted optional arguments when pretty printing.

2018-02-27 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Feb 27 15:49:28 2018 New Revision: 326266 URL: http://llvm.org/viewvc/llvm-project?rev=326266&view=rev Log: Improve the way attribute argument printing happens for omitted optional arguments when pretty printing. Patch by Joel Denny. Added: cfe/trunk/test/Sema

r326265 - Pass a GlobalDecl to setFunctionDefinitionAttributes. NFC.

2018-02-27 Thread Rafael Espindola via cfe-commits
Author: rafael Date: Tue Feb 27 15:44:36 2018 New Revision: 326265 URL: http://llvm.org/viewvc/llvm-project?rev=326265&view=rev Log: Pass a GlobalDecl to setFunctionDefinitionAttributes. NFC. This just makes a followup patch easier to read. Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp cfe/t

[PATCH] D43815: CodeGen tests - typo fixes

2018-02-27 Thread Craig Topper via Phabricator via cfe-commits
craig.topper accepted this revision. craig.topper added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang https://reviews.llvm.org/D43815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D43814: [x86][CET] Introduce _get_ssp, _inc_ssp intrinsics

2018-02-27 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: lib/Headers/cetintrin.h:44 + +static __inline__ void __DEFAULT_FN_ATTRS _inc_ssp(unsigned int __a) { + __builtin_ia32_incsspq(__a); Start a new #ifdef __x86_64__ here that is just for your new intrinsics. That way

[PATCH] D41968: [libunwind][MIPS] Support MIPS floating-point registers for hard-float ABIs.

2018-02-27 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb updated this revision to Diff 136164. bsdjhb added a comment. Herald added a subscriber: christof. - Rebase after N32 commit. - Use ldc1/sdc1 rather than l.d and s.d. Repository: rUNW libunwind https://reviews.llvm.org/D41968 Files: include/__libunwind_config.h include/libunwind.h

[PATCH] D41968: [libunwind][MIPS] Support MIPS floating-point registers for hard-float ABIs.

2018-02-27 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb added a comment. Hmmm, so I was somewhat mistaken as DwarfInstructions.hpp::stepWithDwarf() does use the Register class's setFloatRegister(), however, it assumes that the floating point register is always a double (DwarfInstructions.hpp::getSavedFloatRegister() uses AddressSpace::getDoub

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-27 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett added a comment. In https://reviews.llvm.org/D41102#1020808, @lebedev.ri wrote: > Ok, great. > And it will also complain if you try to output a block within block? Um...no. Since you can have subblocks within blocks. Comment at: clang-doc/BitcodeWriter.cpp:191

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-27 Thread Julie Hockett via Phabricator via cfe-commits
juliehockett updated this revision to Diff 136161. juliehockett marked 15 inline comments as done. juliehockett added a comment. Fixing comments https://reviews.llvm.org/D41102 Files: CMakeLists.txt clang-doc/BitcodeWriter.cpp clang-doc/BitcodeWriter.h clang-doc/CMakeLists.txt clang-d

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-27 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. In https://reviews.llvm.org/D43748#1021246, @aaron.ballman wrote: > LGTM! I can commit on your behalf, or, if you plan to continue submitting > patches, you can ask for commit privileges > (http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access) and > commit

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! I can commit on your behalf, or, if you plan to continue submitting patches, you can ask for commit privileges (http://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-a

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-27 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. In https://reviews.llvm.org/D43747#1021234, @aaron.ballman wrote: > In https://reviews.llvm.org/D43747#1021209, @jdenny wrote: > > > In https://reviews.llvm.org/D43747#1018844, @aaron.ballman wrote: > > > > > Committed in r326057. > > > > > > If you're not already on IRC,

[PATCH] D43798: [analyzer] UndefinedAssignment: Fix warning message on implicit copy/move constructors.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326258: [analyzer] UndefinedAssignmentChecker: Better warning message in implicit ctors. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https:/

r326258 - [analyzer] UndefinedAssignmentChecker: Better warning message in implicit ctors.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 14:05:55 2018 New Revision: 326258 URL: http://llvm.org/viewvc/llvm-project?rev=326258&view=rev Log: [analyzer] UndefinedAssignmentChecker: Better warning message in implicit ctors. When a class forgets to initialize a field in the constructor, and then gets cop

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D43747#1021209, @jdenny wrote: > In https://reviews.llvm.org/D43747#1018844, @aaron.ballman wrote: > > > Committed in r326057. > > > > If you're not already on IRC, I would recommend joining the #llvm channel > > on OFTC so that you can

[PATCH] D43798: [analyzer] UndefinedAssignment: Fix warning message on implicit copy/move constructors.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 136151. NoQ marked an inline comment as done. NoQ added a comment. Mention the implicit constructor in the warning message. https://reviews.llvm.org/D43798 Files: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp test/Analysis/implicit-ctor-undef-v

[PATCH] D43798: [analyzer] UndefinedAssignment: Fix warning message on implicit copy/move constructors.

2018-02-27 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. LGTM. I have a suggestion for a slight modification of the diagnostic text inline. Comment at: test/Analysis/implicit-ctor-undef-value.cpp:12 +// missing. Specify whic

r326254 - AMDGPU: Define FP_FAST_FMA{F} macros for amdgcn

2018-02-27 Thread Konstantin Zhuravlyov via cfe-commits
Author: kzhuravl Date: Tue Feb 27 13:48:05 2018 New Revision: 326254 URL: http://llvm.org/viewvc/llvm-project?rev=326254&view=rev Log: AMDGPU: Define FP_FAST_FMA{F} macros for amdgcn - Expand GK_*s (i.e. GFX6 -> GFX600, GFX601, etc.) - This allows us to choose features correctly in some cases (

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-27 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. In https://reviews.llvm.org/D43747#1018844, @aaron.ballman wrote: > Committed in r326057. > > If you're not already on IRC, I would recommend joining the #llvm channel on > OFTC so that you can watch for build break notifications from the build bots. Thanks. Can your r

Re: r326156 - [analyzer] Logging test typo quickfix.

2018-02-27 Thread George Karpenkov via cfe-commits
should be fine now. > On Feb 27, 2018, at 12:04 AM, Yvan Roux wrote: > > Hi George, > > On 27 February 2018 at 02:31, George Karpenkov via cfe-commits > mailto:cfe-commits@lists.llvm.org>> wrote: >> Author: george.karpenkov >> Date: Mon Feb 26 17:31:06 2018 >> New Revision: 326156 >> >> URL: h

[PATCH] D41968: [libunwind][MIPS] Support MIPS floating-point registers for hard-float ABIs.

2018-02-27 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb added a comment. After thinking about this some more, I need to rework this a bit. The choice of how to expose the floating point registers via getFloatingPointRegister / setFloatingPointRegister only affects consumers of the libunwind unw_get_fpreg/unw_set_fpreg. I think a bigger fact

[PATCH] D39050: Add index-while-building support to Clang

2018-02-27 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D39050#949185, @malaperle wrote: > In https://reviews.llvm.org/D39050#948500, @akyrtzi wrote: > > > @malaperle, to clarify we are not suggesting that you write your own > > parser, the suggestion is to use clang in 'fast-scan' mode to get th

[PATCH] D43798: [analyzer] UndefinedAssignment: Fix warning message on implicit copy/move constructors.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp:60 // Generate a report for this bug. + std::string Str; + llvm::raw_string_ostream OS(Str); a.sidorin wrote: > SmallString<128>? *recalls how it's done* Ok!

[PATCH] D43798: [analyzer] UndefinedAssignment: Fix warning message on implicit copy/move constructors.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 136145. NoQ marked 2 inline comments as done. NoQ added a comment. Use `SmallString`. Add some test for base-class implicit constructors to see how it currently works (not ideal but good enough). https://reviews.llvm.org/D43798 Files: lib/StaticAnalyzer/Che

[PATCH] D39074: [libunwind][MIPS]: Add support for unwinding in N32 processes.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rUNW326250: [libunwind][MIPS]: Add support for unwinding in N32 processes. (authored by jhb, committed by ). Changed prior to commit: https://reviews.llvm.org/D39074?vs=133660&id=136144#toc Repository:

[libunwind] r326250 - [libunwind][MIPS]: Add support for unwinding in N32 processes.

2018-02-27 Thread John Baldwin via cfe-commits
Author: jhb Date: Tue Feb 27 13:24:02 2018 New Revision: 326250 URL: http://llvm.org/viewvc/llvm-project?rev=326250&view=rev Log: [libunwind][MIPS]: Add support for unwinding in N32 processes. Summary: N32 uses the same register context as N64. However, N32 requires one change to properly fetch

[PATCH] D43791: [analyzer] Suppress MallocChecker positives in destructors with atomics.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326249: [analyzer] MallocChecker: Suppress false positives in shared pointers. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.l

[PATCH] D43791: [analyzer] Suppress MallocChecker positives in destructors with atomics.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC326249: [analyzer] MallocChecker: Suppress false positives in shared pointers. (authored by dergachev, committed by ). Repository: rL LLVM https://reviews.llvm.org/D43791 Files: lib/StaticAnalyzer/C

r326249 - [analyzer] MallocChecker: Suppress false positives in shared pointers.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 13:19:33 2018 New Revision: 326249 URL: http://llvm.org/viewvc/llvm-project?rev=326249&view=rev Log: [analyzer] MallocChecker: Suppress false positives in shared pointers. Throw away MallocChecker warnings that occur after releasing a pointer within a destructor

[PATCH] D43714: [analyzer] Don't do anything when trivial-copying an empty class object.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326247: [analyzer] Fix trivial copy for empty objects. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D43714?vs=135771

r326247 - [analyzer] Fix trivial copy for empty objects.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 13:10:08 2018 New Revision: 326247 URL: http://llvm.org/viewvc/llvm-project?rev=326247&view=rev Log: [analyzer] Fix trivial copy for empty objects. The SVal for any empty C++ object is an UnknownVal. Because RegionStore does not have binding extents, binding an

[PATCH] D43666: [analyzer] When constructing a temporary without construction context, track it for destruction anyway.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL326246: [analyzer] Track temporaries without construction contexts for destruction. (authored by dergachev, committed by )

r326246 - [analyzer] Track temporaries without construction contexts for destruction.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 13:02:58 2018 New Revision: 326246 URL: http://llvm.org/viewvc/llvm-project?rev=326246&view=rev Log: [analyzer] Track temporaries without construction contexts for destruction. Sometimes it is not known at compile time which temporary objects will be constructed

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-27 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 136136. jdenny edited the summary of this revision. jdenny added a comment. This addresses the comment about redundant ifs. https://reviews.llvm.org/D43748 Files: include/clang/Basic/Attr.td lib/Parse/ParseDecl.cpp test/Sema/attr-print.c test/Sema/at

[PATCH] D43659: [analyzer] Don't crash when dynamic type of a concrete region is hard-set with placement new.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326245: [analyzer] Don't crash when dynamic type of a variable is set via placement new. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https:/

r326245 - [analyzer] Don't crash when dynamic type of a variable is set via placement new.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 12:54:40 2018 New Revision: 326245 URL: http://llvm.org/viewvc/llvm-project?rev=326245&view=rev Log: [analyzer] Don't crash when dynamic type of a variable is set via placement new. If a variable or an otherwise a concrete typed-value region is being placement-n

[PATCH] D43689: [analyzer] Disable constructor inlining when lifetime extension through fields occurs.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC326240: [analyzer] Disable constructor inlining when lifetime extending through a field. (authored by dergachev, committed by ). Changed prior to commit: https://reviews.llvm.org/D43689?vs=135669&id=136

r326240 - [analyzer] Disable constructor inlining when lifetime extending through a field.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 12:14:06 2018 New Revision: 326240 URL: http://llvm.org/viewvc/llvm-project?rev=326240&view=rev Log: [analyzer] Disable constructor inlining when lifetime extending through a field. Automatic destructors are missing in the CFG in situations like const int &x

[PATCH] D43689: [analyzer] Disable constructor inlining when lifetime extension through fields occurs.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h:70 +/// by binding a smaller object within it to a reference. +bool IsTemporaryLifetimeExtendedViaSubobject = false; dcoughlin wrote: > Would you be will

[PATCH] D43657: [analyzer] dump() dynamic type info and taint into state dumps.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326239: [analyzer] Self-debug: Dump dynamic type info and taint with the program state. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://

[PATCH] D43657: [analyzer] dump() dynamic type info and taint into state dumps.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC326239: [analyzer] Self-debug: Dump dynamic type info and taint with the program state. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D43657 Files: include/cl

r326239 - [analyzer] Self-debug: Dump dynamic type info and taint with the program state.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 12:06:20 2018 New Revision: 326239 URL: http://llvm.org/viewvc/llvm-project?rev=326239&view=rev Log: [analyzer] Self-debug: Dump dynamic type info and taint with the program state. Useful for debugging problems with dynamic type info and taint. Differential Rev

[PATCH] D43533: [CFG] [analyzer] NFC: Refactor ConstructionContext into a finite set of cases.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326238: [CFG] NFC: Refactor ConstructionContext into a finite set of cases. (authored by dergachev, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm

r326238 - [CFG] NFC: Refactor ConstructionContext into a finite set of cases.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 12:03:35 2018 New Revision: 326238 URL: http://llvm.org/viewvc/llvm-project?rev=326238&view=rev Log: [CFG] NFC: Refactor ConstructionContext into a finite set of cases. ConstructionContext is moved into a separate translation unit and is separated into multiple

[PATCH] D43497: [analyzer] Introduce correct lifetime extension behavior in simple cases.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC326236: [analyzer] Introduce correct lifetime extension behavior in simple cases. (authored by dergachev, committed by ). Repository: rC Clang https://reviews.llvm.org/D43497 Files: include/clang/St

r326236 - [analyzer] Introduce correct lifetime extension behavior in simple cases.

2018-02-27 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Tue Feb 27 11:47:49 2018 New Revision: 326236 URL: http://llvm.org/viewvc/llvm-project?rev=326236&view=rev Log: [analyzer] Introduce correct lifetime extension behavior in simple cases. This patch uses the reference to MaterializeTemporaryExpr stored in the construction co

[PATCH] D42776: [Sema] Fix an assertion failure in constant expression evaluation of calls to functions with default arguments

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added inline comments. Comment at: lib/AST/ExprConstant.cpp:5236 if (Frame) { - Result.set(VD, Frame->Index); + Result.set({VD, Frame->Index}); return true; rsmith wrote: > Hmm. We should be versioning local variables as well. Curre

[PATCH] D42776: [Sema] Fix an assertion failure in constant expression evaluation of calls to functions with default arguments

2018-02-27 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 136124. ahatanak marked 7 inline comments as done. ahatanak added a comment. Address review comments. https://reviews.llvm.org/D42776 Files: include/clang/AST/APValue.h lib/AST/APValue.cpp lib/AST/ExprConstant.cpp test/SemaCXX/constant-expression-c

[PATCH] D43811: [MinGW, CrossWindows] Allow passing -static together with -shared

2018-02-27 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326235: [MinGW, CrossWindows] Allow passing -static together with -shared (authored by mstorsjo, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.or

[PATCH] D43811: [MinGW, CrossWindows] Allow passing -static together with -shared

2018-02-27 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC326235: [MinGW, CrossWindows] Allow passing -static together with -shared (authored by mstorsjo, committed by ). Repository: rL LLVM https://reviews.llvm.org/D43811 Files: lib/Driver/ToolChains/Cros

r326235 - [MinGW, CrossWindows] Allow passing -static together with -shared

2018-02-27 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Tue Feb 27 11:42:19 2018 New Revision: 326235 URL: http://llvm.org/viewvc/llvm-project?rev=326235&view=rev Log: [MinGW, CrossWindows] Allow passing -static together with -shared In these combinations, link a DLL as usual, but pass -Bstatic instead of -Bdynamic to indicate p

r326234 - [analyzer] Remove redundant check

2018-02-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Feb 27 11:28:52 2018 New Revision: 326234 URL: http://llvm.org/viewvc/llvm-project?rev=326234&view=rev Log: [analyzer] Remove redundant check There is no point in assigning void just to crash on it in the next line Differential Revision: https://reviews.llvm.or

r326233 - [analyzer] Only attempt to get the value of locations of known type

2018-02-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Feb 27 11:28:52 2018 New Revision: 326233 URL: http://llvm.org/viewvc/llvm-project?rev=326233&view=rev Log: [analyzer] Only attempt to get the value of locations of known type Fixes https://bugs.llvm.org/show_bug.cgi?id=36474 In general, getSVal API should be c

[clang-tools-extra] r326222 - add UUID to the acronyms list of objc property name checks

2018-02-27 Thread Yan Zhang via cfe-commits
Author: wizard Date: Tue Feb 27 10:35:53 2018 New Revision: 326222 URL: http://llvm.org/viewvc/llvm-project?rev=326222&view=rev Log: add UUID to the acronyms list of objc property name checks Reviewers: benhamilton, hokein Reviewed By: benhamilton Subscribers: klimek, cfe-commits Differential

[PATCH] D43778: [clang-tidy] Adding RestrictIncludes check to Fuchsia module

2018-02-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/fuchsia/RestrictIncludesCheck.cpp:42-44 +SourceLocation Loc; ///< '#' location in the include directive +CharSourceRange Range; ///< SourceRange for the file name +std::string Filename; ///< Filename a

[PATCH] D43811: [MinGW, CrossWindows] Allow passing -static together with -shared

2018-02-27 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D43811#1020847, @rnk wrote: > This means, link the CRT and other default libraries statically, but give me > a DLL, right? Just confirming. Exactly - for all libraries linked where you have the choice of both dynamic and static, pick the s

r326230 - [analyzer] Quickfix: don't crash when runtime definition is not available.

2018-02-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Feb 27 11:19:49 2018 New Revision: 326230 URL: http://llvm.org/viewvc/llvm-project?rev=326230&view=rev Log: [analyzer] Quickfix: don't crash when runtime definition is not available. Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp Modifi

r326229 - [analyzer] Logging test quickfix #2.

2018-02-27 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Feb 27 11:19:43 2018 New Revision: 326229 URL: http://llvm.org/viewvc/llvm-project?rev=326229&view=rev Log: [analyzer] Logging test quickfix #2. Modified: cfe/trunk/test/Analysis/region_store_overflow.c Modified: cfe/trunk/test/Analysis/region_store_overflo

[PATCH] D43829: [Sema] Add -Wparentheses warnings for macros (PR 18971)

2018-02-27 Thread Chijun Sima via Phabricator via cfe-commits
NutshellySima added a comment. In https://reviews.llvm.org/D43829#1020957, @lebedev.ri wrote: > Tests? Thanks for your advice, I'll add one. Repository: rC Clang https://reviews.llvm.org/D43829 ___ cfe-commits mailing list cfe-commits@lists.ll

[PATCH] D43791: [analyzer] Suppress MallocChecker positives in destructors with atomics.

2018-02-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 136114. NoQ added a comment. Add one more comment. https://reviews.llvm.org/D43791 Files: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/NewDelete-atomics.cpp Index: test/Analysis/NewDelete-atomics.cpp =

[PATCH] D43830: [clang-format] Format operator key in protos

2018-02-27 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC326227: [clang-format] Format operator key in protos (authored by krasimir, committed by ). Changed prior to commit: ht

[PATCH] D43830: [clang-format] Format operator key in protos

2018-02-27 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added subscribers: cfe-commits, klimek. This fixes a glitch where ``operator: value`` in a text proto would mess up the underlying formatting since it gets parsed as a kw_operator instead of an identifier. Repository: rC Clang https://reviews.llvm.org/

[PATCH] D43830: [clang-format] Format operator key in protos

2018-02-27 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL326227: [clang-format] Format operator key in protos (authored by krasimir, committed by ). Herald added a subscriber: llv

r326227 - [clang-format] Format operator key in protos

2018-02-27 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Feb 27 11:07:47 2018 New Revision: 326227 URL: http://llvm.org/viewvc/llvm-project?rev=326227&view=rev Log: [clang-format] Format operator key in protos Summary: This fixes a glitch where ``operator: value`` in a text proto would mess up the underlying formatting since

[PATCH] D43829: [Sema] Add -Wparentheses warnings for macros (PR 18971)

2018-02-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Tests? Repository: rC Clang https://reviews.llvm.org/D43829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43829: [Sema] Add -Wparentheses warnings for macros (PR 18971)

2018-02-27 Thread Chijun Sima via Phabricator via cfe-commits
NutshellySima created this revision. NutshellySima added a reviewer: rsmith. Herald added a subscriber: cfe-commits. Before, clang does not warn -Wlogical-op-parentheses and -Wbitwise-op-parentheses in macros, thus miss some cases like PR 18971 and mismatch gcc's behavior. Fix this by enabling

[PATCH] D43766: [clang-tidy][modernize-make-unique] Checks c++14 flag before using std::make_unique

2018-02-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:64 +bool MakeSmartPtrCheck::isLanguageVersionSupported(const LangOptions & LangOpts) const +{ The formatting here is wrong. https://reviews.llvm.org/D43766 ___

[PATCH] D43585: [libunwind] Permit additional compiler and linker flags to be passed to tests.

2018-02-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326223: [libunwind] Permit additional compiler and linker flags to be passed to tests. (authored by jhb, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llv

[libunwind] r326223 - [libunwind] Permit additional compiler and linker flags to be passed to tests.

2018-02-27 Thread John Baldwin via cfe-commits
Author: jhb Date: Tue Feb 27 10:40:04 2018 New Revision: 326223 URL: http://llvm.org/viewvc/llvm-project?rev=326223&view=rev Log: [libunwind] Permit additional compiler and linker flags to be passed to tests. Summary: This is done via new LIBUNWIND_TEST_COMPILER_FLAGS and LIBUNWIND_TEST_LINKER_FL

[PATCH] D43775: add UUID to the acronyms list of objc property name checks

2018-02-27 Thread Yan Zhang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326222: add UUID to the acronyms list of objc property name checks (authored by Wizard, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D43775 Fil

[PATCH] D43775: add UUID to the acronyms list of objc property name checks

2018-02-27 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added a comment. LGTM. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43775 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43775: add UUID to the acronyms list of objc property name checks

2018-02-27 Thread Yan Zhang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE326222: add UUID to the acronyms list of objc property name checks (authored by Wizard, committed by ). Changed prior to commit: https://reviews.llvm.org/D43775?vs=136100&id=136102#toc Repository:

  1   2   >