[PATCH] D31114: Refactor `initTargetOptions` out of `EmitAssemblyHelper::CreateTargetMachine` and use it to initialize TargetOptions for ThinLTO Backends

2017-03-17 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini created this revision. Herald added a subscriber: Prazek. https://reviews.llvm.org/D31114 Files: clang/lib/CodeGen/BackendUtil.cpp Index: clang/lib/CodeGen/BackendUtil.cpp === --- clang/lib/CodeGen/BackendUtil.cpp +++

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2017-03-17 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc updated this revision to Diff 92245. chandlerc added a comment. Update with fixes suggested in review. https://reviews.llvm.org/D30806 Files: include/clang/AST/ASTContext.h include/clang/Basic/Builtins.def lib/AST/ASTContext.cpp lib/CodeGen/CGCall.cpp test/CodeGen/nonnull.c

[PATCH] D30806: [nonnull] Teach Clang to attach the nonnull LLVM attribute to declarations and calls instead of just definitions, and then teach it to *not* attach such attributes even if the source c

2017-03-17 Thread Chandler Carruth via Phabricator via cfe-commits
chandlerc marked an inline comment as done. chandlerc added a comment. Function argument order fixed. https://reviews.llvm.org/D30806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r298177 - [X86] Add NumRegisterParameters Module Flag.

2017-03-17 Thread Nirav Dave via cfe-commits
Author: niravd Date: Fri Mar 17 19:43:39 2017 New Revision: 298177 URL: http://llvm.org/viewvc/llvm-project?rev=298177&view=rev Log: [X86] Add NumRegisterParameters Module Flag. Reviewers: rnk, mkuper Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D27051 Added: c

r298175 - [Modules] In case of lock timeout, fallback and build module

2017-03-17 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Fri Mar 17 19:26:18 2017 New Revision: 298175 URL: http://llvm.org/viewvc/llvm-project?rev=298175&view=rev Log: [Modules] In case of lock timeout, fallback and build module Duncan's r298165 introduced the PCMCache mechanism, which guarantees that locks aren't necessary anymore

r298170 - [index] For C++ constructors/destructors, add references to the parent type where its name appears in definitions and declarations

2017-03-17 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Fri Mar 17 18:41:59 2017 New Revision: 298170 URL: http://llvm.org/viewvc/llvm-project?rev=298170&view=rev Log: [index] For C++ constructors/destructors, add references to the parent type where its name appears in definitions and declarations Patch by Nathan Hawes! https

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92220. bkelley added a comment. Integrated feedback from @rjmccall https://reviews.llvm.org/D31007 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaCast.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaInit.cpp test

[PATCH] D28299: Module: use PCMCache to manage memory buffers for pcm files.

2017-03-17 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith closed this revision. dexonsmith marked an inline comment as done. dexonsmith added a comment. Thanks for the reviews! Committed in r298165. https://reviews.llvm.org/D28299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

r298165 - Modules: Cache PCMs in memory and avoid a use-after-free

2017-03-17 Thread Duncan P. N. Exon Smith via cfe-commits
Author: dexonsmith Date: Fri Mar 17 17:55:13 2017 New Revision: 298165 URL: http://llvm.org/viewvc/llvm-project?rev=298165&view=rev Log: Modules: Cache PCMs in memory and avoid a use-after-free Clang's internal build system for implicit modules uses lock files to ensure that after a process write

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92218. bkelley added a comment. Updated with feedback from @jordan_rose and @arphaman https://reviews.llvm.org/D31005 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaExprMember.cpp lib/Se

[PATCH] D31006: [Objective-C] Fix "weak-unavailable" warning with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley marked an inline comment as done. bkelley added inline comments. Comment at: lib/Sema/SemaCast.cpp:125 + assert(Self.getLangOpts().ObjCAutoRefCount || + Self.getLangOpts().ObjCWeak); rjmccall wrote: > Unlike the other patches, we do cle

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley added a comment. Thanks for all the feedback! I think things are looking a lot better now. https://reviews.llvm.org/D31007 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31006: [Objective-C] Fix "weak-unavailable" warning with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92219. bkelley marked an inline comment as done. bkelley added a comment. Updated with feedback from @rjmccall https://reviews.llvm.org/D31006 Files: include/clang/Basic/LangOptions.h include/clang/Sema/Sema.h lib/Sema/SemaCast.cpp lib/Sema/SemaExpr

[PATCH] D31004: [Objective-C] Fix __weak type traits with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley added a comment. Looks like we can simplify everything by using `hasNonTrivialObjCLifetime()`, like in https://reviews.llvm.org/D31003. https://reviews.llvm.org/D31004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

[PATCH] D31004: [Objective-C] Fix __weak type traits with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92217. bkelley added a comment. Updated with feedback from @rjmccall https://reviews.llvm.org/D31004 Files: lib/AST/Type.cpp lib/Sema/SemaExprCXX.cpp test/SemaObjCXX/objc-weak-type-traits.mm Index: test/SemaObjCXX/objc-weak-type-traits.mm ===

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley marked 3 inline comments as done. bkelley added inline comments. Comment at: lib/Sema/SemaDecl.cpp:10184 + (!getLangOpts().ObjCAutoRefCount && getLangOpts().ObjCWeak && + VDecl->getType().getObjCLifetime() != Qualifiers::OCL_Weak)) && !Diags.isIg

[PATCH] D31003: [Objective-C] C++ Classes with __weak Members non-POD Types when using -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley marked 2 inline comments as done. bkelley added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:4407 + (SemaRef.getLangOpts().ObjCWeak && +FieldBaseElementType.getObjCLifetime() == Qualifiers::OCL_Weak))) { +// ARC and Weak: rjmcca

[PATCH] D31003: [Objective-C] C++ Classes with __weak Members non-POD Types when using -fobjc-weak

2017-03-17 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92216. bkelley marked an inline comment as done. bkelley added a comment. Integrated feedback from @rjmccall https://reviews.llvm.org/D31003 Files: lib/AST/DeclCXX.cpp lib/Sema/SemaDeclCXX.cpp test/CodeGenObjCXX/objc-weak.mm Index: test/CodeGenObjCXX

r298160 - [Sema] Unbreak GCC -Werror build (enum compare).

2017-03-17 Thread Davide Italiano via cfe-commits
Author: davide Date: Fri Mar 17 17:19:20 2017 New Revision: 298160 URL: http://llvm.org/viewvc/llvm-project?rev=298160&view=rev Log: [Sema] Unbreak GCC -Werror build (enum compare). Modified: cfe/trunk/lib/Sema/SemaCXXScopeSpec.cpp Modified: cfe/trunk/lib/Sema/SemaCXXScopeSpec.cpp URL: http

LLVM buildmaster will be updated and restarted tonight

2017-03-17 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 5 PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute

2017-03-17 Thread Matthias Gehre via Phabricator via cfe-commits
mgehre updated this revision to Diff 92211. mgehre marked an inline comment as done. mgehre added a comment. Update for review comments https://reviews.llvm.org/D24886 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/Sema/SemaDeclAttr.cpp lib/Sema/SemaStmtAttr.cpp

[PATCH] D30848: Implement DR 373 "Lookup on namespace qualified name in using-directive"

2017-03-17 Thread Matthias Gehre via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298126: Implement DR 373 "Lookup on namespace qualified name in using-directive" (authored by mgehre). Changed prior to commit: https://reviews.llvm.org/D30848?vs=91956&id=92209#toc Repository: rL LL

r298126 - Implement DR 373 "Lookup on namespace qualified name in using-directive"

2017-03-17 Thread Matthias Gehre via cfe-commits
Author: mgehre Date: Fri Mar 17 16:41:20 2017 New Revision: 298126 URL: http://llvm.org/viewvc/llvm-project?rev=298126&view=rev Log: Implement DR 373 "Lookup on namespace qualified name in using-directive" Summary: 3.4.6 [basic.lookup.udir] paragraph 1: In a using-directive or namespace-alias-def

[PATCH] D30931: [clang-tidy] modified identifier naming case to use CT_AnyCase for ignoring case style

2017-03-17 Thread Juliusz Toczydłowski via Phabricator via cfe-commits
jutocz updated this revision to Diff 92205. jutocz added a comment. Updated diff to show full context https://reviews.llvm.org/D30931 Files: clang-tidy/readability/IdentifierNamingCheck.cpp clang-tidy/readability/IdentifierNamingCheck.h Index: clang-tidy/readability/IdentifierNamingCheck.h

[PATCH] D31101: [ThinLTO] Use clang's existing code gen handling for ThinLTO backends

2017-03-17 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson created this revision. Herald added subscribers: Prazek, mehdi_amini. We noticed that when invoking the thinBackend via clang (for the distributed build case) that flags like -ffunction-sections and -emit-llvm were not having the intended effect. This could have been fixed by setting up

[PATCH] D31097: [clang-tidy] don't warn about implicit widening casts in function calls

2017-03-17 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki added a comment. In my opinion, we should stop warning about all implicit casts. Take for instance: long l1; if (condition) l1 = n << 8; // <- implicit cast else l1 = ~0L; That is fine. Nothing suspicious. Just because the destination variable is long doesn't hav

[PATCH] D31097: [clang-tidy] don't warn about implicit widening casts in function calls

2017-03-17 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki created this revision. Herald added a subscriber: JDevlieghere. This patch fixes https://bugs.llvm.org/show_bug.cgi?id=32246 To avoid spurious warnings, clang-tidy should not warn about misplaced widening casts for implicit casts in function calls. Repository: rL LLVM https:

[PATCH] D29599: Clang Changes for alloc_align

2017-03-17 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. Ping! https://reviews.llvm.org/D29599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30931: [clang-tidy] modified identifier naming case to use CT_AnyCase for ignoring case style

2017-03-17 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Could you generate a diff with full context (http://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface)? https://reviews.llvm.org/D30931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://li

[PATCH] D31049: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations

2017-03-17 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298101: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted… (authored by alexfh). Changed prior to commit: https://reviews.llvm.org/D31049?vs=92037&id=92159#toc Repository:

[clang-tools-extra] r298101 - [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations

2017-03-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 17 11:40:34 2017 New Revision: 298101 URL: http://llvm.org/viewvc/llvm-project?rev=298101&view=rev Log: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations Summary: There is no need for triggering warning when noexcept specifi

[PATCH] D30977: [CodeGen] Emit a CoreFoundation link guard when @available is used

2017-03-17 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM. Comment at: lib/CodeGen/CGObjC.cpp:3428 + // CoreFoundation is not used in the code, the linker won't link the + // framework. + auto &Context = getLLVMContext()

[PATCH] D30991: [Driver] Fix cross compiling with Visual Studio 2017

2017-03-17 Thread Zachary Turner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298098: [clang-cl] Fix cross-compilation with MSVC 2017. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D30991?vs=92050&id=92154#toc Repository: rL LLVM https://reviews.llv

r298098 - [clang-cl] Fix cross-compilation with MSVC 2017.

2017-03-17 Thread Zachary Turner via cfe-commits
Author: zturner Date: Fri Mar 17 11:24:34 2017 New Revision: 298098 URL: http://llvm.org/viewvc/llvm-project?rev=298098&view=rev Log: [clang-cl] Fix cross-compilation with MSVC 2017. clang-cl works best when the user runs vcvarsall to set up an environment before running, but even this is not eno

[PATCH] D30848: Implement DR 373 "Lookup on namespace qualified name in using-directive"

2017-03-17 Thread Richard Smith via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks, LGTM https://reviews.llvm.org/D30848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

r298097 - Test commit.

2017-03-17 Thread David Green via cfe-commits
Author: dmgreen Date: Fri Mar 17 10:38:49 2017 New Revision: 298097 URL: http://llvm.org/viewvc/llvm-project?rev=298097&view=rev Log: Test commit. Modified: cfe/trunk/lib/Driver/ToolChains/Arch/ARM.h Modified: cfe/trunk/lib/Driver/ToolChains/Arch/ARM.h URL: http://llvm.org/viewvc/llvm-proje

[PATCH] D30295: [analyzer] clarify undef shift result when shift count is negative or exceeds the bit width

2017-03-17 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added inline comments. Comment at: lib/StaticAnalyzer/Core/CheckerHelpers.cpp:99 +bool clang::ento::isExprResultConformsComparisonRule(CheckerContext &C, + BinaryOperatorKind BOK, +

[PATCH] D30295: [analyzer] clarify undef shift result when shift count is negative or exceeds the bit width

2017-03-17 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki marked 2 inline comments as done. danielmarjamaki added inline comments. Comment at: lib/StaticAnalyzer/Core/CheckerHelpers.cpp:100 + BinaryOperatorKind BOK, +

[PATCH] D30295: [analyzer] clarify undef shift result when shift count is negative or exceeds the bit width

2017-03-17 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki updated this revision to Diff 92150. danielmarjamaki added a comment. Fix review comments Repository: rL LLVM https://reviews.llvm.org/D30295 Files: include/clang/StaticAnalyzer/Core/PathSensitive/CheckerHelpers.h lib/StaticAnalyzer/Checkers/ConversionChecker.cpp lib/St

[PATCH] D31082: [mips][msa] Range adjustment for ldi_b builtin function operand

2017-03-17 Thread Stefan Maksimovic via Phabricator via cfe-commits
smaksimovic created this revision. Reasoning behind this change was allowing the function to accept all values from range [-128, 255] since all of them can be encoded in an 8bit wide value. This differs from the prior state where only range [-128, 127] was accepted, where values were assumed to

[PATCH] D31076: [change-namespace] do not rename specialized template parameters.

2017-03-17 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298090: [change-namespace] do not rename specialized template parameters. (authored by ioeric). Changed prior to commit: https://reviews.llvm.org/D31076?vs=92135&id=92141#toc Repository: rL LLVM htt

[clang-tools-extra] r298090 - [change-namespace] do not rename specialized template parameters.

2017-03-17 Thread Eric Liu via cfe-commits
Author: ioeric Date: Fri Mar 17 09:05:39 2017 New Revision: 298090 URL: http://llvm.org/viewvc/llvm-project?rev=298090&view=rev Log: [change-namespace] do not rename specialized template parameters. Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D3107

[PATCH] D31078: [libunwind] Clean up macro usage.

2017-03-17 Thread Ranjeet Singh via Phabricator via cfe-commits
rs created this revision. Convention in libunwind is to use !defined(FOO) not !FOO. https://reviews.llvm.org/D31078 Files: include/__libunwind_config.h include/libunwind.h include/unwind.h src/AddressSpace.hpp src/Unwind-EHABI.cpp src/Unwind-EHABI.h src/Unwind-sjlj.c src/UnwindC

[PATCH] D31076: [change-namespace] do not rename specialized template parameters.

2017-03-17 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D31076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D30493: [change-namespace] avoid adding leading '::' when possible.

2017-03-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 92138. ioeric marked 3 inline comments as done. ioeric added a comment. - Merged with origin/master - Addressed comments. Merged with origin/master. https://reviews.llvm.org/D30493 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/Ch

[PATCH] D30493: [change-namespace] avoid adding leading '::' when possible.

2017-03-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: change-namespace/ChangeNamespace.cpp:291 + assert(!SymbolSplitted.empty()); + SymbolSplitted.pop_back(); + hokein wrote: > Is this needed? Looks like you are removing the name of the symbol here, but > from the code be

[PATCH] D31049: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations

2017-03-17 Thread Marek Jenda via Phabricator via cfe-commits
edyp87 added a comment. No, please apply this patch for me. Thank you! Repository: rL LLVM https://reviews.llvm.org/D31049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31076: [change-namespace] do not rename specialized template parameters.

2017-03-17 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. https://reviews.llvm.org/D31076 Files: change-namespace/ChangeNamespace.cpp unittests/change-namespace/ChangeNamespaceTests.cpp Index: unittests/change-namespace/ChangeNamespaceTests.cpp === --- un

[PATCH] D31049: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations

2017-03-17 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Do you have commit rights? Repository: rL LLVM https://reviews.llvm.org/D31049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31049: [Clang-tidy] Fix for misc-noexcept-move-constructor false triggers on defaulted declarations

2017-03-17 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 Repository: rL LLVM https://reviews.llvm.org/D31049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[PATCH] D31069: Don't warn about an unreachable fallthrough annotation in a template function

2017-03-17 Thread Ahmed Asadi via Phabricator via cfe-commits
ahmedasadi added a comment. Thanks for reviewing. Yes, I need someone to commit for me. https://reviews.llvm.org/D31069 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30415: Fix -mno-altivec cannot overwrite -maltivec option

2017-03-17 Thread Ulrich Weigand via Phabricator via cfe-commits
uweigand added a comment. In https://reviews.llvm.org/D30415#703442, @hfinkel wrote: > In https://reviews.llvm.org/D30415#703398, @echristo wrote: > > > Different suggestion: > > > > Remove the faltivec option. Even gcc doesn't support it anymore afaict. > > > What are you suggesting? Always havi

[clang-tools-extra] r298060 - [clang-tidy] Added a test with a different format.

2017-03-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 17 05:05:49 2017 New Revision: 298060 URL: http://llvm.org/viewvc/llvm-project?rev=298060&view=rev Log: [clang-tidy] Added a test with a different format. Modified: clang-tools-extra/trunk/test/clang-tidy/readability-misleading-indentation.cpp Modified: clang-t

[PATCH] D30841: [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-17 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298059: [clang-tidy] readability-misleading-indentation: fix chained if (authored by alexfh). Changed prior to commit: https://reviews.llvm.org/D30841?vs=92026&id=92116#toc Repository: rL LLVM https

[clang-tools-extra] r298059 - [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 17 04:58:30 2017 New Revision: 298059 URL: http://llvm.org/viewvc/llvm-project?rev=298059&view=rev Log: [clang-tidy] readability-misleading-indentation: fix chained if Summary: Fixed erroneously flagging of chained if statements when styled like this: ``` if (cond) {

[PATCH] D26350: Keep invalid Switch in the AST

2017-03-17 Thread Olivier Goffart via Phabricator via cfe-commits
ogoffart added a comment. Ping https://reviews.llvm.org/D26350 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r298057 - [clang-tidy] Verify some conditions in a matcher instead of check(). NFC

2017-03-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 17 04:47:05 2017 New Revision: 298057 URL: http://llvm.org/viewvc/llvm-project?rev=298057&view=rev Log: [clang-tidy] Verify some conditions in a matcher instead of check(). NFC Modified: clang-tools-extra/trunk/clang-tidy/google/ExplicitConstructorCheck.cpp Modif

[PATCH] D30841: [clang-tidy] readability-misleading-indentation: fix chained if

2017-03-17 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. In https://reviews.llvm.org/D30841#702980, @fgross wrote: > Now using `ASTContext::getParents` instead of `ChainedIfs` map. > > For some reason I thought of `getParents` as an expensive functio

[PATCH] D30931: [clang-tidy] modified identifier naming case to use CT_AnyCase for ignoring case style

2017-03-17 Thread Juliusz Toczydłowski via Phabricator via cfe-commits
jutocz updated this revision to Diff 92108. jutocz retitled this revision from "[clang-tidy] added new identifier naming case type for ignoring case style" to "[clang-tidy] modified identifier naming case to use CT_AnyCase for ignoring case style". jutocz edited the summary of this revision. juto

[clang-tools-extra] r298052 - [clang-tidy] Ignore deleted members in google-explicit-constructor.

2017-03-17 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Mar 17 03:40:07 2017 New Revision: 298052 URL: http://llvm.org/viewvc/llvm-project?rev=298052&view=rev Log: [clang-tidy] Ignore deleted members in google-explicit-constructor. This fixes http://llvm.org/PR32221. Modified: clang-tools-extra/trunk/clang-tidy/google/Exp