aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-10-26 08:37:25 +0000
committerHaojian Wu <hokein@google.com>2017-10-26 08:37:25 +0000
commitd2825825f8cd8b692d42075dfbc9f8195765e278 (patch)
treecb91166cdc23e75c69ca0127dd80b919fedd6aa9 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentcaceb64067aefcf709fb55265832bda46a2d1c2a (diff)
downloadllvm-d2825825f8cd8b692d42075dfbc9f8195765e278.zip
llvm-d2825825f8cd8b692d42075dfbc9f8195765e278.tar.gz
llvm-d2825825f8cd8b692d42075dfbc9f8195765e278.tar.bz2
[clang-tidy ObjC] [2/3] Support non-C++ files in ClangTidyTest
Summary: This is part 2 of 3 of a series of changes to improve Objective-C linting in clang-tidy. Currently, `clang::tidy::test::runCheckOnCode()` assumes all files are C++ and unconditionally adds `-std=c++11` to the list of `clang-tidy` options. This updates the logic to check the extension of the source file and only add `-std=c++11` if the extension indicates C++ or Objective-C++. Depends On D39188 Test Plan: ninja ClangTidyTests && \ ./tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTests Patch by Ben Hamilton! Reviewers: hokein, alexfh Reviewed By: hokein Subscribers: Wizard Differential Revision: https://reviews.llvm.org/D39189 llvm-svn: 316645
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions