[PATCH] D30909: [Analyzer] Finish taint propagation to derived symbols of tainted regions

2017-05-13 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
vlad.tsyrklevich updated this revision to Diff 98905. vlad.tsyrklevich added a comment. Some stylistic & comment updates. https://reviews.llvm.org/D30909 Files: include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h li

[PATCH] D30909: [Analyzer] Finish taint propagation to derived symbols of tainted regions

2017-05-13 Thread Vlad Tsyrklevich via Phabricator via cfe-commits
vlad.tsyrklevich added inline comments. Comment at: lib/StaticAnalyzer/Core/ProgramState.cpp:656-659 + // If the SVal is a LazyCompoundVal it might only cover sub-region of a given + // symbol. For example, the LCV might represent a field in an uninitialized + // struct. In th

[PATCH] D33049: [libcxx] Support for Objective-C++ tests

2017-05-13 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added inline comments. Comment at: utils/libcxx/compiler.py:110-114 +if input_is_text: +if is_objcxx: +cmd += ['-x', 'objective-c++', '-fobjc-arc'] +else: +cmd += ['-x', 'c++'] Do we need/

[PATCH] D33010: Make google-build-using-namespace skip std::.*literals

2017-05-13 Thread Martin Ejdestig via Phabricator via cfe-commits
marejde updated this revision to Diff 98893. marejde added a comment. Removed use of getQualifiedNameAsString(). https://reviews.llvm.org/D33010 Files: clang-tidy/google/UsingNamespaceDirectiveCheck.cpp clang-tidy/google/UsingNamespaceDirectiveCheck.h test/clang-tidy/google-namespaces.cpp

[PATCH] D33053: [PowerPC] Implement vec_xxpermdi builtin.

2017-05-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai requested changes to this revision. nemanjai added a comment. This revision now requires changes to proceed. Add a test case like the one that currently crashes (see inline comment). Also, please do the following: - Put a note in the description (and the commit message) with a link to t

[PATCH] D30946: [ScopePrinting] Added support to print full scopes of types and declarations.

2017-05-13 Thread Simon Schroeder via Phabricator via cfe-commits
schroedersi added a comment. In https://reviews.llvm.org/D30946#740567, @bkramer wrote: > Also the mutable state in PrintingPolicy is really really ugly, is there no > better way for this? :( Thanks for your comment :-) I assume with mutable state you mean `PrintingPolicy::TemporarySuppressSc

[PATCH] D30946: [ScopePrinting] Added support to print full scopes of types and declarations.

2017-05-13 Thread Simon Schroeder via Phabricator via cfe-commits
schroedersi updated this revision to Diff 98887. schroedersi added a comment. - Ran clang-format (current trunk version) on the changes (except on some test files) - Adapted patch to current trunk version https://reviews.llvm.org/D30946 Files: include/clang/AST/PrettyPrinter.h include/clan

[PATCH] D32977: [OpenCL] Emit function-scope variable in constant address space as static variable

2017-05-13 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/Sema/SemaDecl.cpp:10286 + // these variables must be a compile time constant. + VDecl->getType().getAddressSpace() == LangAS::opencl_constant) CheckForConstantInitializer(Init, DclT); yaxu