Re: [PATCH] D15920: [CMake] Add option to switch default C++ stdlib

2016-02-09 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. ping http://reviews.llvm.org/D15920 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17021: Adding doxygen comments to the LLVM intrinsics (part 5, f16cintrin.h)

2016-02-09 Thread Katya Romanova via cfe-commits
kromanova created this revision. kromanova added reviewers: ygao, probinson, echristo, gribozavr, craig.topper, jroelofs. kromanova added a subscriber: cfe-commits. kromanova set the repository for this revision to rL LLVM. Eric Christopher told me that from now on it's OK to commit doxygen comme

Re: [PATCH] D16183: Added CheckName field to YAML report

2016-02-09 Thread Ilia Gromov via cfe-commits
Elijah_Th updated this revision to Diff 47302. Elijah_Th added a comment. Fixed YAML format (was not correct in the last patch). Grouped replacements in YAML by Diagnostics. It will help to apply replacements for one fix at once. http://reviews.llvm.org/D16183 Files: /media/SSD_/code/LLVM-c

r260211 - Fixed preprocessed output of the first token for pragmas.

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 02:51:26 2016 New Revision: 260211 URL: http://llvm.org/viewvc/llvm-project?rev=260211&view=rev Log: Fixed preprocessed output of the first token for pragmas. Clang did not expanded macros in the very first token of the pragmas during preprocessed output Modified:

Re: [PATCH] D16873: Refactor MemRegionManager::getVarRegion to call two new functions, improving readability

2016-02-09 Thread Aleksei Sidorin via cfe-commits
a.sidorin added a comment. Hello Alexander, Yes, types in `static_cast` should be changed. So, you need only to change return type and types in static_cast, and it should work. http://reviews.llvm.org/D16873 ___ cfe-commits mailing list cfe-commit

Re: [PATCH] D16183: Added CheckName field to YAML report

2016-02-09 Thread Ilia Gromov via cfe-commits
Elijah_Th added a comment. YAML report looks like this now: --- MainSourceFile: '' Diagnostics: CheckName: misc-macro-parentheses Replacements: - FilePath:/media/SSD_/code/zdoom/main_1.cpp Offset: 1354 Length: 0 ReplacementText: '('

[clang-tools-extra] r260212 - [clang-tidy] Replace a custom ASTMatcher with a built-in one.

2016-02-09 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 9 03:26:11 2016 New Revision: 260212 URL: http://llvm.org/viewvc/llvm-project?rev=260212&view=rev Log: [clang-tidy] Replace a custom ASTMatcher with a built-in one. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerSizeEmptyCheck.cpp Modified: cl

Re: [PATCH] D16613: Introduce a cmake module to figure out whether we need to link with libatomic.

2016-02-09 Thread Daniel Sanders via cfe-commits
dsanders accepted this revision. dsanders added a comment. LGTM http://reviews.llvm.org/D16613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r260214 - Do not mark variable as threadprivate if it was marked already.

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 03:41:33 2016 New Revision: 260214 URL: http://llvm.org/viewvc/llvm-project?rev=260214&view=rev Log: Do not mark variable as threadprivate if it was marked already. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL:

r260213 - [OPENMP] Allow to reference threadprivate variable in same directive.

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 03:41:09 2016 New Revision: 260213 URL: http://llvm.org/viewvc/llvm-project?rev=260213&view=rev Log: [OPENMP] Allow to reference threadprivate variable in same directive. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp cfe/trunk/test/OpenMP/threadprivate_messa

r260215 - [OPENMP] Allow to use the variable in the same 'threadprivate'

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 03:41:42 2016 New Revision: 260215 URL: http://llvm.org/viewvc/llvm-project?rev=260215&view=rev Log: [OPENMP] Allow to use the variable in the same 'threadprivate' directive. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.

Re: [PATCH] D15373: Fix for bug 25786 - Assertion "Chunk.Kind == DeclaratorChunk::Function" failed with regparm attribute.

2016-02-09 Thread Alexander Makarov via cfe-commits
a.makarov added a comment. Richard, Reid, please take a look. http://reviews.llvm.org/D15373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r260217 - [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812.

2016-02-09 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Tue Feb 9 04:20:48 2016 New Revision: 260217 URL: http://llvm.org/viewvc/llvm-project?rev=260217&view=rev Log: [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812. Modified: clang-tools-extra/trunk/clang-tidy/readability/ContainerS

r260218 - Add AST matcher reference to documentation directory when building HTML docs.

2016-02-09 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Tue Feb 9 04:59:21 2016 New Revision: 260218 URL: http://llvm.org/viewvc/llvm-project?rev=260218&view=rev Log: Add AST matcher reference to documentation directory when building HTML docs. Modified: cfe/trunk/docs/CMakeLists.txt Modified: cfe/trunk/docs/CMakeLists.txt U

r260219 - Fix possible OOB access found by buildbot

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 05:01:58 2016 New Revision: 260219 URL: http://llvm.org/viewvc/llvm-project?rev=260219&view=rev Log: Fix possible OOB access found by buildbot Modified: cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp Modified: cfe/trunk/lib/Frontend/PrintPreprocessedOutpu

Re: r260077 - [OPENMP 4.5] Ccapture/codegen of private non-static data members.

2016-02-09 Thread Renato Golin via cfe-commits
Hi Alexey, It's still broken on ARM: http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/10409 cheers, --renato On 8 February 2016 at 14:25, Alexey Bataev via cfe-commits wrote: > Ok, thanks a lot! Hope it will fix win-based buildbots completely. > > Best regards, > Alexey Bat

Re: r260077 - [OPENMP 4.5] Ccapture/codegen of private non-static data members.

2016-02-09 Thread Alexey Bataev via cfe-commits
Renato, Will be fixed ASAP Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 09.02.2016 14:07, Renato Golin пишет: > Hi Alexey, > > It's still broken on ARM: > > http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/10409 > > cheers, > --renato > > > On

Re: [clang-tools-extra] r260217 - [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812.

2016-02-09 Thread Alexander Kornienko via cfe-commits
I think, we need to add a `hasAnyName()` matcher that would take a list of names. On Tue, Feb 9, 2016 at 11:20 AM, Gabor Horvath via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: xazax > Date: Tue Feb 9 04:20:48 2016 > New Revision: 260217 > > URL: http://llvm.org/viewvc/llvm-projec

r260220 - [OPENMP] Fix test incompatibility with arm buildbots.

2016-02-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Tue Feb 9 06:16:42 2016 New Revision: 260220 URL: http://llvm.org/viewvc/llvm-project?rev=260220&view=rev Log: [OPENMP] Fix test incompatibility with arm buildbots. Modified: cfe/trunk/test/OpenMP/parallel_private_codegen.cpp Modified: cfe/trunk/test/OpenMP/parallel_pr

Re: r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

2016-02-09 Thread Ulrich Weigand via cfe-commits
Hal Finkel wrote on 09.02.2016 04:59:21: > We generally notice this when we try to use some part of the C++ > standard library (std::atomic or std::thread as I recall). Could we > have something in the test-suite that uses that functionality in a > way likely to expose this bug? Well, when I loo

Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-09 Thread Jorge Teixeira via cfe-commits
Hi, I filed the bug (https://llvm.org/bugs/show_bug.cgi?id=26283) some time ago and nobody picked it up, so here is a trivial patch exposing the missing macros, that to the best of my ability were already present as the internal underscored versions. Perhaps a more general bug about C11 floating p

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: clang-tidy/misc/SuspiciousSemicolonCheck.cpp:23 @@ +22,3 @@ + Finder->addMatcher( + stmt(anyOf(ifStmt(hasThen(nullStmt().bind("semi"))), + forStmt(hasBody(nullStmt().bind("semi"))), Looks like this ch

Re: [PATCH] D16922: [clang-tidy] Added check-fixes for misc-virtual-near-miss.

2016-02-09 Thread Cong Liu via cfe-commits
congliu updated this revision to Diff 47307. congliu added a comment. - Disallowed matches for method in template instantiations. Updated test. http://reviews.llvm.org/D16922 Files: clang-tidy/misc/VirtualNearMissCheck.cpp test/clang-tidy/misc-virtual-near-miss.cpp Index: test/clang-tidy/m

r260222 - Registering the gnuNullExpr AST matcher as a dynamic matcher so that it is available from clang-query.

2016-02-09 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Tue Feb 9 08:04:49 2016 New Revision: 260222 URL: http://llvm.org/viewvc/llvm-project?rev=260222&view=rev Log: Registering the gnuNullExpr AST matcher as a dynamic matcher so that it is available from clang-query. Modified: cfe/trunk/lib/ASTMatchers/Dynamic/Regist

[clang-tools-extra] r260223 - [clang-tidy] Add 'misc-misplaced-widening-cast' check.

2016-02-09 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Tue Feb 9 08:08:49 2016 New Revision: 260223 URL: http://llvm.org/viewvc/llvm-project?rev=260223&view=rev Log: [clang-tidy] Add 'misc-misplaced-widening-cast' check. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16310

Re: [PATCH] D16310: new clang-tidy checker misc-long-cast

2016-02-09 Thread Daniel Marjamäki via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260223: [clang-tidy] Add 'misc-misplaced-widening-cast' check. (authored by danielmarjamaki). Changed prior to commit: http://reviews.llvm.org/D16310?vs=47182&id=47310#toc Repository: rL LLVM http:/

[PATCH] D17023: pr26544: Bitfield layout with pragma pack and attributes "packed" and "aligned

2016-02-09 Thread Vladimir Yakovlev via cfe-commits
vbyakovlcl created this revision. vbyakovlcl added a reviewer: rjmccall. vbyakovlcl added subscribers: DmitryPolukhin, cfe-commits. Fix clang/gcc incompatibility of bitfields layout in the presence of pragma packed and attributes aligned and packed. http://reviews.llvm.org/D17023 Files: lib/A

Re: [clang-tools-extra] r260217 - [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812.

2016-02-09 Thread Gábor Horváth via cfe-commits
I agree, that would be awesome. I could achieve the same functionality using some anyOf and hasName, but I considered it messier and probably less performant. Anyways, what about inline namespace support for matchesName? On 9 February 2016 at 12:54, Alexander Kornienko wrote: > I think, we need

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-09 Thread H.J. Lu via cfe-commits
On Mon, Feb 8, 2016 at 3:28 PM, Richard Smith wrote: > On Mon, Feb 8, 2016 at 3:01 PM, H.J. Lu wrote: >> On Mon, Feb 8, 2016 at 2:58 PM, Richard Smith wrote: >>> On Mon, Feb 8, 2016 at 2:54 PM, H.J. Lu wrote: On Mon, Feb 8, 2016 at 2:51 PM, Richard Smith wrote: > On Mon, Feb 8,

[PATCH] D17026: Changed ASTImporter DiagnosticsEngine from FromDiag to ToDiag for unsupported ASTNodes Import.

2016-02-09 Thread Elisavet Sakellari via cfe-commits
esakella created this revision. esakella added reviewers: rsmith, klimek, bkramer. esakella added subscribers: cfe-commits, karies. Before this change the errors produced by the ASTImporter when trying to import an unsupported ASTNode where produced through the DiagnosticsEngine of the FromConte

Re: [clang-tools-extra] r260217 - [clang-tidy] Make readability-container-size-empty work with inline namespaces. Fix PR25812.

2016-02-09 Thread Samuel Benzaquen via cfe-commits
Now that I submitted the fix to hasName(), I'll work on adding hasAnyName. On Tue, Feb 9, 2016 at 6:54 AM, Alexander Kornienko wrote: > I think, we need to add a `hasAnyName()` matcher that would take a list of > names. > > On Tue, Feb 9, 2016 at 11:20 AM, Gabor Horvath via cfe-commits < > cfe-c

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Gábor Horváth via cfe-commits
xazax.hun updated this revision to Diff 47316. xazax.hun added a comment. - Fixed the cases pointed out by the review. http://reviews.llvm.org/D16535 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/SuspiciousSemicolonCheck.cpp clang-tidy/misc/Sus

Re: [PATCH] D16524: [clang-format-vs] Fix sort include main include: Use current path for the '-assume-filename'

2016-02-09 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D16524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. Thank you, good catches! http://reviews.llvm.org/D16535 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-09 Thread Richard via cfe-commits
LegalizeAdulthood added a comment. In article , Aaron Ballman writes: > aaron.ballman added a comment. > > This is causing build bot failures: > > http://bb.pgr.jp/builders/cmake-clang-tools-x86_64-linux/builds/23351 > http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/492 >

Re: [PATCH] D16308: clang-tidy Enhance readability-simplify-boolean-expr check to handle implicit conversions of integral types to bool and member pointers

2016-02-09 Thread Richard via cfe-commits
In article , Aaron Ballman writes: > aaron.ballman added a comment. > > This is causing build bot failures: > > http://bb.pgr.jp/builders/cmake-clang-tools-x86_64-linux/builds/23351 > http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/492 > http://lab.llvm.org:8011/builders/clang-p

Re: [PATCH] D16953: Enhance clang-tidy modernize-redundant-void-arg check to apply fixes to header files

2016-02-09 Thread Richard via cfe-commits
LegalizeAdulthood marked an inline comment as done. Comment at: test/clang-tidy/check_clang_tidy.py:152 @@ -68,4 +151,3 @@ - has_check_fixes = input_text.find('CHECK-FIXES') >= 0 - has_check_messages = input_text.find('CHECK-MESSAGES') >= 0 + has_check_fixes, has_check_messag

Re: [PATCH] D16953: Enhance clang-tidy modernize-redundant-void-arg check to apply fixes to header files

2016-02-09 Thread Richard via cfe-commits
LegalizeAdulthood updated this revision to Diff 47319. LegalizeAdulthood added a comment. Update from review comments http://reviews.llvm.org/D16953 Files: clang-tidy/modernize/RedundantVoidArgCheck.cpp test/clang-tidy/check_clang_tidy.py test/clang-tidy/modernize-redundant-void-arg.cpp

[PATCH] D17029: [AST] Implemented missing import for the Template type parameter and Injected Class Name in ASTImporter class.

2016-02-09 Thread Elisavet Sakellari via cfe-commits
esakella created this revision. esakella added reviewers: klimek, bkramer, rsmith. esakella added subscribers: cfe-commits, karies. Herald added a subscriber: aemerson. -Implemented the VisitTemplateTypeParmType and VisitInjectedClassNameType functions in the ASTImporter class, and also enabled t

Re: [PATCH] D15539: [libcxxabi] Reducing stack usage of test

2016-02-09 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. I think you've reduced the scope of the tests significantly with this change. If you want to make the objects smaller, that's fine - but please heed Howard's advice in the email thread: - Don't make them too small. (three digits is better than two) - Keep the objec

[clang-tools-extra] r260225 - [clang-tidy] Add -target in misc-misplaced-widening-cast test so it will work on various bots

2016-02-09 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Tue Feb 9 09:43:05 2016 New Revision: 260225 URL: http://llvm.org/viewvc/llvm-project?rev=260225&view=rev Log: [clang-tidy] Add -target in misc-misplaced-widening-cast test so it will work on various bots Modified: clang-tools-extra/trunk/test/clang-tidy/misc-m

Re: [PATCH] D16639: [libcxx] Limit catopen usage to unix-like OSes

2016-02-09 Thread Marshall Clow via cfe-commits
mclow.lists added a comment. I don't have a problem with this change (assuming that it is correct, and it looks correct), but I think it should stay in __config, with all the other configuration tests. (There are other configuration tests in the .cpp files, but users never see those). FWIW, l

Re: [PATCH] D16922: [clang-tidy] Added check-fixes for misc-virtual-near-miss.

2016-02-09 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/VirtualNearMissCheck.cpp:183 @@ +182,3 @@ +/// +/// This function is copied from the one defined in ASTMatchFinder.cpp to solve +/// the problem that QualType::getAsCXXRecordDecl does not work for template

Re: [PATCH] D15539: [libcxxabi] Reducing stack usage of test

2016-02-09 Thread Ben Craig via cfe-commits
bcraig added a comment. Any objections to using the original sizes, but constructing the objects at global scope? That fixes the stack usage without significantly changing the layout characteristics of the test? http://reviews.llvm.org/D15539 ___

Re: [clang-tools-extra] r260225 - [clang-tidy] Add -target in misc-misplaced-widening-cast test so it will work on various bots

2016-02-09 Thread Alexander Kornienko via cfe-commits
I'm not sure this is a good fix. What was the specific issue (and on which buildbots)? On Tue, Feb 9, 2016 at 4:43 PM, Daniel Marjamaki via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: danielmarjamaki > Date: Tue Feb 9 09:43:05 2016 > New Revision: 260225 > > URL: http://llvm.org/v

Re: [PATCH] D16351: [FIX] Bug 25404 - Crash on typedef in OpenCL 2.0

2016-02-09 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/SemaOpenCL/implicit-typedef.cl:1 @@ +1,2 @@ +// RUN: %clang_cc1 %s -DTEST_WARNINGS -cl-std=CL2.0 -verify -pedantic -fsyntax-only -Wsystem-headers +// RUN: %clang_cc1 %s -cl-std=CL2.0 -fsyntax-only do you need -ped

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-09 Thread Manuel Klimek via cfe-commits
klimek added a subscriber: klimek. klimek added a comment. I have fixed that in r260218 for LibASTMatcherReference (basically using the same mechanism, but only copying the one file). Not sure which is the better approach, I considered globbing, but my gut feeling decided against it :) Definitel

Re: [PATCH] D15539: [libcxxabi] Reducing stack usage of test

2016-02-09 Thread Ben Craig via cfe-commits
bcraig updated the summary for this revision. bcraig updated this revision to Diff 47327. http://reviews.llvm.org/D15539 Files: test/dynamic_cast14.pass.cpp Index: test/dynamic_cast14.pass.cpp === --- test/dynamic_cast14.pass.cpp

Re: [PATCH] D15920: [CMake] Add option to switch default C++ stdlib

2016-02-09 Thread Chris Bieneman via cfe-commits
beanz added a comment. Is it correct to assume that all the test case changes are needed just to make the tests pass if you set CLANG_DEFAULT_CXX_STDLIB=libc++? I'm not really comfortable approving this patch because I've made all of one or two changes ever to the driver, but I can try to peste

Re: [PATCH] D16639: [libcxx] Limit catopen usage to unix-like OSes

2016-02-09 Thread Ben Craig via cfe-commits
bcraig updated the summary for this revision. bcraig updated this revision to Diff 47328. bcraig added a comment. Moved the CATOPEN config check back to __config. Saving a larger locale refactor for later (but oh boy is it coming). http://reviews.llvm.org/D16639 Files: include/__config Ind

Re: [PATCH] D15465: [git-clang-format]: New option to perform formatting against staged changes only

2016-02-09 Thread Mark Lodato via cfe-commits
lodato added a subscriber: lodato. lodato requested changes to this revision. lodato added a reviewer: lodato. lodato added a comment. This revision now requires changes to proceed. This does not work properly because it calls `clang-format` on the files in the working directory, even if `--stage

Re: [PATCH] D16535: [clang-tidy] Check to find unintended semicolons that changes the semantics.

2016-02-09 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/misc-suspicious-semicolon.rst:35 @@ +34,3 @@ + +if(x >= y); +x -= y; The doc needs to be updated. With your latest patch, this is also a warning case. http://reviews.llvm.org/D16535 ___

Need to use function "getAsCXXRecordDecl" of ASTMatchFinder.cpp in a clang-tidy check

2016-02-09 Thread Cong Liu via cfe-commits
Hi Richard, I need to use the function (line 747 of ASTMatchFinder.cpp ): static CXXRecordDecl *getAsCXXRecordDecl(const Type *TypeNode) in the misc-virtual-near-miss check of clang-tidy, because it can correctly get the declaratio

[libcxx] r260235 - Introduce a cmake module to figure out whether we need to link with libatomic.

2016-02-09 Thread Vasileios Kalintiris via cfe-commits
Author: vkalintiris Date: Tue Feb 9 11:00:38 2016 New Revision: 260235 URL: http://llvm.org/viewvc/llvm-project?rev=260235&view=rev Log: Introduce a cmake module to figure out whether we need to link with libatomic. Summary: This fixes the tests under std/atomics for 32-bit MIPS CPUs where the 8

Re: [PATCH] D16613: Introduce a cmake module to figure out whether we need to link with libatomic.

2016-02-09 Thread Vasileios Kalintiris via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260235: Introduce a cmake module to figure out whether we need to link with libatomic. (authored by vkalintiris). Changed prior to commit: http://reviews.llvm.org/D16613?vs=46286&id=47329#toc Repositor

Re: [PATCH] D15465: [git-clang-format]: New option to perform formatting against staged changes only

2016-02-09 Thread Mark Lodato via cfe-commits
lodato added inline comments. Comment at: git-clang-format:124 @@ -121,3 +123,3 @@ del opts.quiet commit, files = interpret_args(opts.args, dash_dash, opts.commit) lodato wrote: > This will work without `--diff` (otherwise it will try to apply changes in

Re: r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP macros

2016-02-09 Thread Hal Finkel via cfe-commits
- Original Message - > From: "Ulrich Weigand" > To: "Hal Finkel" > Cc: cfe-commits@lists.llvm.org > Sent: Tuesday, February 9, 2016 6:36:34 AM > Subject: Re: r259931 - [SystemZ] Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP > macros > > > > Hal Finkel wrote on 09.02.2016 04:59:21: > > > W

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-09 Thread Steve Downey via cfe-commits
I'll push up a review with the one line link addition later. Thanks! The html copy should also get applied to the release_38 branch too, if there's going to be another RC. On Tue, Feb 9, 2016 at 11:52 AM Manuel Klimek wrote: > klimek added a subscriber: klimek. > klimek added a comment. > > I h

Re: [PATCH] D16963: Copy LibASTMatchersReference.html to gen'd docs

2016-02-09 Thread Steve Downey via cfe-commits
sdowney added a subscriber: sdowney. sdowney added a comment. I'll push up a review with the one line link addition later. Thanks! The html copy should also get applied to the release_38 branch too, if there's going to be another RC. http://reviews.llvm.org/D16963 ___

Re: RFC: Update Intel386, x86-64 and IA MCU psABIs for passing/returning empty struct

2016-02-09 Thread H.J. Lu via cfe-commits
On Tue, Feb 9, 2016 at 6:45 AM, H.J. Lu wrote: > On Mon, Feb 8, 2016 at 3:28 PM, Richard Smith wrote: >> On Mon, Feb 8, 2016 at 3:01 PM, H.J. Lu wrote: >>> On Mon, Feb 8, 2016 at 2:58 PM, Richard Smith wrote: On Mon, Feb 8, 2016 at 2:54 PM, H.J. Lu wrote: > On Mon, Feb 8, 2016 at 2:51

Re: [PATCH] D15829: [PGO] Clang Option that enables IR level PGO instrumentation

2016-02-09 Thread Rong Xu via cfe-commits
xur updated this revision to Diff 47331. xur added a comment. Ping (also added the test that missed from last upload). Thanks, -Rong http://reviews.llvm.org/D15829 Files: include/clang/Driver/CC1Options.td include/clang/Frontend/CodeGenOptions.h lib/CodeGen/BackendUtil.cpp lib/CodeGe

r260238 - [MS ABI] Cleanup emitVTableDefinitions

2016-02-09 Thread David Majnemer via cfe-commits
Author: majnemer Date: Tue Feb 9 11:27:52 2016 New Revision: 260238 URL: http://llvm.org/viewvc/llvm-project?rev=260238&view=rev Log: [MS ABI] Cleanup emitVTableDefinitions Use the VFTable components to determine whether or not we should emit RTTI data instead of duplicating the VFTableBuilder's

r260241 - Revert "Avoid forcing emission of delayed dllexported classes on template instantiation"

2016-02-09 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Feb 9 11:48:27 2016 New Revision: 260241 URL: http://llvm.org/viewvc/llvm-project?rev=260241&view=rev Log: Revert "Avoid forcing emission of delayed dllexported classes on template instantiation" This reverts commit r260194. It caused PR26549. There's probably a better wa

Re: [PATCH] D16808: [MCU] PR26438: Fix assertion failure on function returning an empty struct or union

2016-02-09 Thread Denis Zobnin via cfe-commits
d.zobnin.bugzilla updated this revision to Diff 47333. d.zobnin.bugzilla added a comment. Thank you for your reply! Added a check for empty struct/union to treat them as void, updated the test accordingly. Please take a look. http://reviews.llvm.org/D16808 Files: lib/CodeGen/TargetInfo.cpp

Re: [PATCH] D16040: [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr

2016-02-09 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Adding a few final comments, otherwise, looks good! Comment at: lib/Sema/SemaDeclAttr.cpp:5050 @@ +5049,3 @@ + + // Check if there only one access qualifier + if (D->hasAttr()) { there is only one Comment at: lib/Se

Re: [PATCH] D16539: [FIX] 26194 - LLVM crash in CXXNameMangler::mangleType

2016-02-09 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/AST/MicrosoftMangle.cpp:1386 @@ -1385,1 +1385,3 @@ + if (Quals.hasAddressSpace()) { +// Address space extension: I was just wondering since this code appears to be a repetition from ItaniumMangler.cpp, could

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-09 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Parse/ParseStmt.cpp:2214 @@ +2213,3 @@ + +bool Parser::ParseOpenCLUnrollHintAttribute(ParsedAttributes &Attrs) { + MaybeParseGNUAttributes(Attrs); pxli168 wrote: > Anastasia wrote: > > pxli168 wrote: > > > I am won

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-02-09 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Related to: 1. I think I would still add space. You can also reformat other lines. There are only 5 lines above. 2. Agree. 3. Feels like may be we should try to see if the passed argument is convertible to the function parameter type. For example, I see that some bui

[PATCH] D17034: Add an AST matcher for null pointers

2016-02-09 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: klimek, sbenza. aaron.ballman added a subscriber: cfe-commits. Herald added a subscriber: klimek. There are several ways to specify a null pointer constant. C++11 has nullptr, GNU has the __null extension, and there's always NULL

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-09 Thread Artem Belevich via cfe-commits
tra updated the summary for this revision. tra updated this revision to Diff 47335. tra marked 3 inline comments as done. tra added a comment. Updated the way WrongSide functions are removed from consideration during overload resolution. Previous version could provide inconsistent results dependi

Re: [PATCH] D16870: [CUDA] Tweak attribute-based overload resolution to match nvcc behavior.

2016-02-09 Thread Artem Belevich via cfe-commits
tra planned changes to this revision. tra added a comment. Previously accepted version was dependent on order of functions in overload set. In order to make ordering consistent, WrongSide functions are now removed from the set before pair-wise comparison of candidates. Please take a look.

Re: [PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

2016-02-09 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 47337. yaxunl marked 4 inline comments as done. yaxunl added a comment. Sorry for the delay. Revised as Xiuli suggested. http://reviews.llvm.org/D16686 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticPa

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-09 Thread Hubert Tong via cfe-commits
There is a __LDBL_DECIMAL_DIG__ predefined macro. __DECIMAL_DIG__ will not always be the same as __LDBL_DECIMAL_DIG__. -- HT On Mon, Feb 8, 2016 at 11:26 PM, Jorge Teixeira via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Hi, I filed the bug (https://llvm.org/bugs/show_bug.cgi?id=26283) so

Re: [PATCH] D15450: Avoid double deletion in Clang driver.

2016-02-09 Thread Serge Pavlov via cfe-commits
CodeGen action defined in the unit test does not call HandleTranslationUnit, so the hack implemented in `BackendConsumer::HandleTranslationUnit` does not run and clang crashes. With the fix no crash occurs. Thanks, --Serge 2016-02-05 1:17 GMT+06:00 Serge Pavlov : > sepavloff added a comment. > >

RE: [libcxx] r260235 - Introduce a cmake module to figure out whether we need to link with libatomic.

2016-02-09 Thread Vasileios Kalintiris via cfe-commits
Hi Hans, Can we merge this on the 3.8 release branch? It fixes libcxx builds on MIPS by linking with libatomic when needed. Also, all the x86_64 and ARM buildbots for libcxx look good. Thanks, Vasileios From: cfe-commits [cfe-commits-boun...@lists.llvm.

r260246 - Simplify EnterTokenStream API to make it more robust for memory management

2016-02-09 Thread David Blaikie via cfe-commits
Author: dblaikie Date: Tue Feb 9 12:52:09 2016 New Revision: 260246 URL: http://llvm.org/viewvc/llvm-project?rev=260246&view=rev Log: Simplify EnterTokenStream API to make it more robust for memory management While this won't help fix things like the bug that r260219 addressed, it seems like goo

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-02-09 Thread Sterling Augustine via cfe-commits
saugustine updated this revision to Diff 47343. saugustine added a comment. - Cleanup dyn_cast usage inside QualTypeNames. http://reviews.llvm.org/D15861 Files: include/clang/Tooling/Core/QualTypeNames.h lib/Tooling/Core/CMakeLists.txt lib/Tooling/Core/QualTypeNames.cpp unittests/Toolin

r260254 - [libclang] indexing: handle 'TopLevelDeclInObjCContainers' at the point where they are reported.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:21 2016 New Revision: 260254 URL: http://llvm.org/viewvc/llvm-project?rev=260254&view=rev Log: [libclang] indexing: handle 'TopLevelDeclInObjCContainers' at the point where they are reported. It isn't much benefit and doesn't worth the complexity to try

r260253 - [libclang] indexing: for a synthesized property reference have the parent be the ObjC implementation decl.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:19 2016 New Revision: 260253 URL: http://llvm.org/viewvc/llvm-project?rev=260253&view=rev Log: [libclang] indexing: for a synthesized property reference have the parent be the ObjC implementation decl. Modified: cfe/trunk/tools/libclang/IndexingConte

r260250 - [libclang] indexing: Have the semantic container of synthesized ObjC getter/setter methods be the implementation decl.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:07 2016 New Revision: 260250 URL: http://llvm.org/viewvc/llvm-project?rev=260250&view=rev Log: [libclang] indexing: Have the semantic container of synthesized ObjC getter/setter methods be the implementation decl. Matches the behavior of other ObjC metho

r260251 - [ASTUnit] Change the parameter of ASTUnit::LoadFromCompilerInvocationAction to accept a more general FrontendAction.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:13 2016 New Revision: 260251 URL: http://llvm.org/viewvc/llvm-project?rev=260251&view=rev Log: [ASTUnit] Change the parameter of ASTUnit::LoadFromCompilerInvocationAction to accept a more general FrontendAction. Modified: cfe/trunk/include/clang/Fron

r260252 - [Frontend] Handle ASTConsumer::shouldSkipFunctionBody via the MultiplexConsumer.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:16 2016 New Revision: 260252 URL: http://llvm.org/viewvc/llvm-project?rev=260252&view=rev Log: [Frontend] Handle ASTConsumer::shouldSkipFunctionBody via the MultiplexConsumer. Modified: cfe/trunk/include/clang/Frontend/MultiplexConsumer.h cfe/trun

r260255 - [libclang] indexing: make sure to not visit init-list expressions twice.

2016-02-09 Thread Argyrios Kyrtzidis via cfe-commits
Author: akirtzidis Date: Tue Feb 9 13:07:24 2016 New Revision: 260255 URL: http://llvm.org/viewvc/llvm-project?rev=260255&view=rev Log: [libclang] indexing: make sure to not visit init-list expressions twice. Modified: cfe/trunk/test/Index/index-refs.cpp cfe/trunk/tools/libclang/IndexBod

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread David Blaikie via cfe-commits
On Mon, Feb 8, 2016 at 9:23 PM, Xinliang David Li wrote: > Wrong in the sense the the coverage result for the default operators > (the line where they are declared) is marked as if they are not called > which can be confusing to the user. > Presumably a user would have the same problem with impl

Re: [PATCH] D15861: Support fully-qualified names for all QualTypes

2016-02-09 Thread Sterling Augustine via cfe-commits
I've updated the change. Would you mind checking it in? I'll look into switching the implementations shortly. On Tue, Feb 9, 2016 at 11:02 AM, Sterling Augustine wrote: > saugustine updated this revision to Diff 47343. > saugustine added a comment. > > - Cleanup dyn_cast usage inside QualTypeNa

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread Xinliang David Li via cfe-commits
On Tue, Feb 9, 2016 at 11:14 AM, David Blaikie wrote: > > > On Mon, Feb 8, 2016 at 9:23 PM, Xinliang David Li > wrote: >> >> Wrong in the sense the the coverage result for the default operators >> (the line where they are declared) is marked as if they are not called >> which can be confusing to

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread David Blaikie via cfe-commits
On Tue, Feb 9, 2016 at 11:26 AM, Xinliang David Li wrote: > On Tue, Feb 9, 2016 at 11:14 AM, David Blaikie wrote: > > > > > > On Mon, Feb 8, 2016 at 9:23 PM, Xinliang David Li > > wrote: > >> > >> Wrong in the sense the the coverage result for the default operators > >> (the line where they are

Re: [PATCH] D17034: Add an AST matcher for null pointers

2016-02-09 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:4821 @@ +4820,3 @@ +/// initializer for i. +AST_MATCHER(Expr, nullPointerConstant) { + return Matcher( Use AST_MATCHER_FUNCTION instead, where the return value is the matcher (in

Re: [PATCH] D17034: Add an AST matcher for null pointers

2016-02-09 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:4821 @@ +4820,3 @@ +/// initializer for i. +AST_MATCHER(Expr, nullPointerConstant) { + return Matcher( sbenza wrote: > sbenza wrote: > > Use AST_MATCHER_FUNCTION instead, w

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread Xinliang David Li via cfe-commits
On Tue, Feb 9, 2016 at 11:30 AM, David Blaikie wrote: > > > On Tue, Feb 9, 2016 at 11:26 AM, Xinliang David Li > wrote: >> >> On Tue, Feb 9, 2016 at 11:14 AM, David Blaikie wrote: >> > >> > >> > On Mon, Feb 8, 2016 at 9:23 PM, Xinliang David Li >> > wrote: >> >> >> >> Wrong in the sense the the

Re: [PATCH] D17034: Add an AST matcher for null pointers

2016-02-09 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: include/clang/ASTMatchers/ASTMatchers.h:4821 @@ +4820,3 @@ +/// initializer for i. +AST_MATCHER(Expr, nullPointerConstant) { + return Matcher( aaron.ballman wrote: > aaron.ballman wrote: > > sbenza wrote: > > > sbenza w

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread David Blaikie via cfe-commits
On Tue, Feb 9, 2016 at 11:41 AM, Xinliang David Li wrote: > On Tue, Feb 9, 2016 at 11:30 AM, David Blaikie wrote: > > > > > > On Tue, Feb 9, 2016 at 11:26 AM, Xinliang David Li > > wrote: > >> > >> On Tue, Feb 9, 2016 at 11:14 AM, David Blaikie > wrote: > >> > > >> > > >> > On Mon, Feb 8, 2016

r260266 - clang-cl: Enable plugins on Windows

2016-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Feb 9 13:43:13 2016 New Revision: 260266 URL: http://llvm.org/viewvc/llvm-project?rev=260266&view=rev Log: clang-cl: Enable plugins on Windows Modified: cfe/trunk/test/Frontend/plugins.c cfe/trunk/test/lit.cfg Modified: cfe/trunk/test/Frontend/plugins.c URL: htt

r260265 - clang-cl: Support loading plugins on Windows

2016-02-09 Thread Ehsan Akhgari via cfe-commits
Author: ehsan Date: Tue Feb 9 13:43:11 2016 New Revision: 260265 URL: http://llvm.org/viewvc/llvm-project?rev=260265&view=rev Log: clang-cl: Support loading plugins on Windows This builds on the support being added to LLVM to import and export registries from DLLs. This will allow us to pick up

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread Xinliang David Li via cfe-commits
On Tue, Feb 9, 2016 at 11:44 AM, David Blaikie wrote: > > > On Tue, Feb 9, 2016 at 11:41 AM, Xinliang David Li > wrote: >> >> On Tue, Feb 9, 2016 at 11:30 AM, David Blaikie wrote: >> > >> > >> > On Tue, Feb 9, 2016 at 11:26 AM, Xinliang David Li >> > wrote: >> >> >> >> On Tue, Feb 9, 2016 at 11

r260267 - Pass /bigobj when building lib/ASTMatchers/Dynamic/Registry.cpp

2016-02-09 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Tue Feb 9 13:53:30 2016 New Revision: 260267 URL: http://llvm.org/viewvc/llvm-project?rev=260267&view=rev Log: Pass /bigobj when building lib/ASTMatchers/Dynamic/Registry.cpp This is the third time it has crossed the 2^16 section limit. We've already spent time optimizing this

Re: [PATCH] D16947: [PGO] assignment operator does not get profile data

2016-02-09 Thread David Li via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL260270: [PGO] Fix issue: explicitly defaulted assignop is not profiled (authored by davidxl). Changed prior to commit: http://reviews.llvm.org/D16947?vs=47239&id=47351#toc Repository: rL LLVM http:/

r260270 - [PGO] Fix issue: explicitly defaulted assignop is not profiled

2016-02-09 Thread Xinliang David Li via cfe-commits
Author: davidxl Date: Tue Feb 9 14:02:59 2016 New Revision: 260270 URL: http://llvm.org/viewvc/llvm-project?rev=260270&view=rev Log: [PGO] Fix issue: explicitly defaulted assignop is not profiled Differential Revision: http://reviews.llvm.org/D16947 Added: cfe/trunk/test/Profile/def-as

Re: Patch for Bug 26283: float.h is missing mandatory C11 fp macros like DBL_DECIMAL_DIG and LDBL_DECIMAL_DIG

2016-02-09 Thread Hubert Tong via cfe-commits
I see no immediate issue with this patch, but I am not one of the usual reviewers for this part of the code base. -- HT On Tue, Feb 9, 2016 at 2:56 PM, Jorge Teixeira wrote: > Thanks Hubert. Somehow I omitted that prefix when typing the macros, > and I did not noticed it when I was testing beca

Re: Need to use function "getAsCXXRecordDecl" of ASTMatchFinder.cpp in a clang-tidy check

2016-02-09 Thread Richard Smith via cfe-commits
On Tue, Feb 9, 2016 at 9:03 AM, Cong Liu via cfe-commits wrote: > Hi Richard, > > I need to use the function (line 747 of ASTMatchFinder.cpp): > > static CXXRecordDecl *getAsCXXRecordDecl(const Type *TypeNode) > > in the misc-virtual-near-miss check of clang-tidy, because it can correctly > get

  1   2   >