diff options
| author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 20:07:19 +0000 |
|---|---|---|
| committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-06 20:07:19 +0000 |
| commit | 7ce04056ed226d5a9409e88d06dd0af166f157d7 (patch) | |
| tree | 7349a62f251a3582024e70eb99f13197988753e2 /tools/clang/empty_string/tests | |
| parent | 18fd51c7353803bbf12e1e954999bca4a25f6379 (diff) | |
| download | chromium_src-7ce04056ed226d5a9409e88d06dd0af166f157d7.zip chromium_src-7ce04056ed226d5a9409e88d06dd0af166f157d7.tar.gz chromium_src-7ce04056ed226d5a9409e88d06dd0af166f157d7.tar.bz2 | |
Fix bitrot in Chrome clang tool infrastructure.
- LLVM now uses C++11, so need to use LLVM_OVERRIDE anymore.
- Small changes in Clang interfaces for flags and FrontendFactory
instantiation.
- clang-format-diff.py works slightly differently now, so update the
run_tool.py wrapper to invoke it correctly.
- Delete tools that are no longer needed.
BUG=
R=thakis@chromium.org
Review URL: https://codereview.chromium.org/448693003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/clang/empty_string/tests')
| -rw-r--r-- | tools/clang/empty_string/tests/test-expected.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/clang/empty_string/tests/test-expected.cc b/tools/clang/empty_string/tests/test-expected.cc index 7fd9613..6762e37 100644 --- a/tools/clang/empty_string/tests/test-expected.cc +++ b/tools/clang/empty_string/tests/test-expected.cc @@ -7,14 +7,14 @@ #include <string> // Tests for std::string declarations. -void TestDeclarations() { std::string a, b("abc"), c; } +void TestDeclarations() { + std::string a, b("abc"), c; +} // Tests for std::string allocated with new. void TestNew() { - std::string* a = new std::string, - *b = new std::string("abc"), - *c = new std::string, - *d = new std::string(); + std::string* a = new std::string, *b = new std::string("abc"), + *c = new std::string, *d = new std::string(); } // Tests for std::string construction in initializer lists. @@ -43,3 +43,4 @@ void TestWideTemporaries(const std::wstring& reference_argument, TestWideTemporaries(std::wstring(), std::wstring()); TestWideTemporaries(std::wstring(), std::wstring()); } + |
