[PATCH] D52814: [PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with -fsanitize=address

2018-10-12 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 169516. Repository: rC Clang https://reviews.llvm.org/D52814 Files: lib/CodeGen/BackendUtil.cpp test/CodeGen/asan-new-pm.ll Index: test/CodeGen/asan-new-pm.ll === --- /dev/null +++ t

[PATCH] D53228: [VFS] Remove 'ignore-non-existent-contents' attribute for YAML-based VFS.

2018-10-12 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added a reviewer: bruno. Herald added subscribers: dexonsmith, hiraditya. 'ignore-non-existent-contents' stopped working after r342232 in a way that the actual attribute value isn't used and it works as if it is always `true`. Common use case for VFS iterati

[PATCH] D53231: [Sema] Fix PR38987: keep end location of a direct initializer list

2018-10-12 Thread Orivej Desh via Phabricator via cfe-commits
orivej created this revision. orivej added reviewers: rsmith, vsk, aaron.ballman. Herald added a subscriber: cfe-commits. If PerformConstructorInitialization of a direct initializer list constructor is called while instantiating a template, it has brace locations in its BraceLoc arguments but no

[PATCH] D53217: [clang-tidy] add IgnoreMacros option to modernize-use-equals-delete

2018-10-12 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG with a nit. Comment at: clang-tidy/modernize/UseEqualsDeleteCheck.h:46 void check(const ast_matchers::MatchFinder::MatchResult &Result) override; +private: + const boo

[PATCH] D37726: clang: alias -static-{libstdc++, libgcc} for LLVM variants

2018-10-12 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. It would be nice to have a flag here that's agnostic to the value supplied to `-rtlib` or `-stdlib`. Perhaps `-static-rtlib` (for either libgcc or compiler-rt) and `-static-stdlib` (for either libc++ or libstdc++). (Yes, it's bad that we use `stdlib` to mean "the C++ sta

[PATCH] D37726: clang: alias -static-{libstdc++, libgcc} for LLVM variants

2018-10-12 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In https://reviews.llvm.org/D37726#1264233, @rsmith wrote: > It would be nice to have a flag here that's agnostic to the value supplied to > `-rtlib` or `-stdlib`. Perhaps `-static-rtlib` (for either libgcc or > compiler-rt) and `-static-stdlib` (for either libc++ or li

[PATCH] D53207: Fix bug 26547 - alignof should return ABI alignment, not preferred alignment

2018-10-12 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Please extend the tests to check that the `-fclang-abi-compat=7` switch undoes your change here. One other comment, and otherwise this looks good. Will you need someone to commit this for you? Comment at: test/SemaCXX/align-x86.cpp:4-5 + +#include +#

[PATCH] D52750: [Diagnostics] Check for integer overflow in array size expressions

2018-10-12 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Yeah, this looks better. Though this really highlights that the "warn on undefined behavior" behavior of the constant evaluator should be orthogonal to the evaluation mode... we don't really need/want to evaluate past a side-effect or non-constant expression here. http

[PATCH] D52771: [clang-tidy] Non-private member variables in classes (MISRA, CppCoreGuidelines, HICPP)

2018-10-12 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:113 + +- New alias :doc:`cppcoreguidelines-non-private-member-variables-in-classes + ` Please move new alias after new checks. Repository: rCTE Clang Tools Extra https://reviews.llvm.o

[PATCH] D48866: [clang-tidy] Add incorrect-pointer-cast checker

2018-10-12 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tidy/misc/IncorrectPointerCastCheck.cpp:80 + } +} // namespace misc + Somehow, misc namespace is closed twice. Comment at: docs/ReleaseNotes.rst:60 +- New :doc:`misc-incorrect-pointer-c

[PATCH] D53238: [Driver] Add -static-{rtlib, stdlib} and make -static-{libgcc, libstdc++} their aliases

2018-10-12 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay created this revision. MaskRay added reviewers: martell, rsmith. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D53238 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/CommonArgs.cpp lib/Driver/ToolChains/Darwin.cpp lib/Driver/

[PATCH] D53239: [python] [tests] Disable python binding tests when building with LLVM_USE_SANITIZER=Address

2018-10-12 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: mgorny, delcypher. Herald added a subscriber: cfe-commits. @mgorny: These fail for me on macOS too, if LLVM is configured as cmake ../llvm/ -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_SANITIZER=Address I guess we might have to outright disable them und

[PATCH] D53239: [python] [tests] Disable python binding tests when building with LLVM_USE_SANITIZER=Address

2018-10-12 Thread Dan Liew via Phabricator via cfe-commits
delcypher accepted this revision. delcypher added a comment. This revision is now accepted and ready to land. LGTM. But then I would say that because I wrote the patch 😛... Repository: rC Clang https://reviews.llvm.org/D53239 ___ cfe-commits mail

[PATCH] D53238: [Driver] Add -static-{rtlib, stdlib} and make -static-{libgcc, libstdc++} their aliases

2018-10-12 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 169538. MaskRay added a comment. Rename local variables Repository: rC Clang https://reviews.llvm.org/D53238 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/CommonArgs.cpp lib/Driver/ToolChains/Darwin.cpp lib/Driver/ToolChains/Dragon

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-12 Thread Ben Craig via Phabricator via cfe-commits
bcraig added inline comments. Comment at: test/Analysis/padding_cpp.cpp:204-212 +// expected-warning@+1{{Excessive padding in 'struct FakeIntSandwich'}} +struct FakeIntSandwich { + char c1; + int i; + char c2; +}; + Looking at this again... what new cases does

[PATCH] D51868: [libcxx] Build and test fixes for Windows

2018-10-12 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF requested changes to this revision. EricWF added inline comments. This revision now requires changes to proceed. Comment at: CMakeLists.txt:550 +endif() add_compile_flags_if_supported( +-Wextra -W -Wwrite-strings Couldn't we keep the "-Wall" here? And

[PATCH] D50860: [libc++][test] Remove non-portable assumption that thread's constructor allocates with ::new

2018-10-12 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/F.pass.cpp:121 //allocations. +int numAllocs; + Why? Comment at: test/std/thread/thread.threads/thread.thread.class/thread.

[PATCH] D50860: [libc++][test] Remove non-portable assumption that thread's constructor allocates with ::new

2018-10-12 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. Requesting changes to move this out of my TODO review queue. https://reviews.llvm.org/D50860 ___ cfe-commits mailing list cfe-commits@l

[PATCH] D51762: First part of the calendar stuff

2018-10-12 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. This is the first of part of this functionality. Some of these bits are not here yet. Comment at: test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp:10 +// UNSUPPORTED: c++03, c++11, c++14, c++17 +// XFAIL

[PATCH] D53213: [clangd] Send CodeAction responses to textDocument/codeAction (LSP 3.8)

2018-10-12 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clangd/ClangdLSPServer.cpp:338 + Command Cmd; + if (Action.command && Action.edit) +return llvm::None; What would you think about emitting two commands in this case? First the edit and then the command. I believe

[PATCH] D51762: First part of the calendar stuff

2018-10-12 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: test/std/utilities/time/time.cal/time.cal.ymwd/time.cal.ymwd.members/ctor.sys_days.pass.cpp:10 +// UNSUPPORTED: c++03, c++11, c++14, c++17 +// XFAIL + mclow.lists wrote: > EricWF wrote: > > What? > The `sys_days` type is

[PATCH] D52771: [clang-tidy] Non-private member variables in classes (MISRA, CppCoreGuidelines, HICPP)

2018-10-12 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri marked an inline comment as done. lebedev.ri added inline comments. Comment at: docs/ReleaseNotes.rst:113 + +- New alias :doc:`cppcoreguidelines-non-private-member-variables-in-classes + ` Eugene.Zelenko wrote: > Please move new alias after new check

<    1   2   3