[PATCH] D53696: [Haiku] Support __float128 for Haiku x86 and x86_64

2018-11-24 Thread Kristina Brooks via Phabricator via cfe-commits
kristina added a comment. Ping. Is the author still around? I'm happy to take over this revision if not, and add `__FLOAT128__` but unless someone says `_GLIBCXX_USE_FLOAT128` is actually defined by the toolchain, I'll remove that line, it looks like it really shouldn't be defined in the toolch

[PATCH] D54872: [clangd] Add ability to not use -resource-dir at all

2018-11-24 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle created this revision. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. Using Clang-cl, I have seen scenarios where the compilation database contains all flags necessary to find compiler-specific (CL) headers, using /imsvc. Specifying -

[clang-tools-extra] r347520 - A bit of AST matcher cleanup, NFC.

2018-11-24 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Sat Nov 24 18:41:01 2018 New Revision: 347520 URL: http://llvm.org/viewvc/llvm-project?rev=347520&view=rev Log: A bit of AST matcher cleanup, NFC. Removed the uses of the allOf() matcher inside node matchers that are implicit allOf(). Replaced uses of allOf() with the explici

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2018-11-24 Thread Sergey via Phabricator via cfe-commits
DevAlone added a comment. So, will it be added? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D33029/new/ https://reviews.llvm.org/D33029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D49754: Add -m(no-)spe, and e500 CPU definitions and support to clang

2018-11-24 Thread Justin Hibbits via Phabricator via cfe-commits
jhibbits added a comment. Hi Vit, I'm unable to reproduce the previous crash with clang8, so for now assuming it's fixed by other events. If that turns out not to be the case, I can revisit it. I am able to reproduce this crash though, so am taking a look. I'm' not quite sure how to interpr

[PATCH] D52578: Thread safety analysis: Allow scoped releasing of capabilities

2018-11-24 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. > As the analysis grew more complex, I switched to the current system based on > "facts". There are a number of facts that are potentially useful in static > analysis, such as whether one expression aliases another, and most of them > don't look at all like capabil

[PATCH] D54438: [analyzer][WIP] Reimplement dependencies between checkers

2018-11-24 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Hmmm, I was wrong a little bit: I realized that if I tinker with with `initializeManager` and `getEnabledCheckers` just a bit more, register checkers straight away, don't need to collect them first, and this would make sure that dependencies are registered before the

[PATCH] D54823: [analyzer][MallocChecker][NFC] Document and reorganize some functions

2018-11-24 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus marked 3 inline comments as done. Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:1087 if (FD->getKind() == Decl::Function) { -initIdentifierInfo(C.getASTContext()); +MemFunctionInfo.initIdentifierInfo(C.getASTContex

[PATCH] D54823: [analyzer][MallocChecker][NFC] Document and reorganize some functions

2018-11-24 Thread Henry Wong via Phabricator via cfe-commits
MTC added inline comments. Comment at: lib/StaticAnalyzer/Checkers/MallocChecker.cpp:342 + DefaultBool IsOptimistic; + MemFunctionInfoTy MemFunctionInfo; public: Szelethus wrote: > Szelethus wrote: > > Szelethus wrote: > > > MTC wrote: > > > > I can't say that

[PATCH] D53488: [clang-tidy] Improving narrowing conversions

2018-11-24 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:31 + Options.get("WarnOnFloatingPointNarrowingConversion", 1)), + WarnOnCastingLiterals(Options.get("WarnOnCastingLiterals", 1)) {} + I think

[PATCH] D33672: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-11-24 Thread Umann Kristóf via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC347513: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker (authored by Szelethus, committed by ). Changed prior to commit: https://reviews.llvm.org/D33672?vs=172516&id=175154#toc

r347513 - [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker

2018-11-24 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Sat Nov 24 04:24:27 2018 New Revision: 347513 URL: http://llvm.org/viewvc/llvm-project?rev=347513&view=rev Log: [analyzer] INT50-CPP. Do not cast to an out-of-range enumeration checker This checker implements a solution to the "INT50-CPP. Do not cast to an out-of-range enu

r347512 - isEvaluatable() implies a constant context.

2018-11-24 Thread Bill Wendling via cfe-commits
Author: void Date: Sat Nov 24 02:45:55 2018 New Revision: 347512 URL: http://llvm.org/viewvc/llvm-project?rev=347512&view=rev Log: isEvaluatable() implies a constant context. Assume that we're in a constant context if we're asking if the expression can be compiled into a constant initializer. Thi