Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(590)

Issue 448693003: Fix bitrot in Chrome clang tool infrastructure. (Closed)

Created:
6 years, 4 months ago by dcheng
Modified:
6 years, 4 months ago
Reviewers:
Nico
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287841

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -482 lines) Patch
M tools/clang/empty_string/EmptyStringConverter.cpp View 8 chunks +18 lines, -13 lines 2 comments Download
M tools/clang/empty_string/Makefile View 1 chunk +7 lines, -5 lines 0 comments Download
M tools/clang/empty_string/tests/test-expected.cc View 2 chunks +6 lines, -5 lines 0 comments Download
D tools/clang/rewrite_scoped_array/Makefile View 1 chunk +0 lines, -23 lines 0 comments Download
D tools/clang/rewrite_scoped_array/RewriteScopedArray.cpp View 1 chunk +0 lines, -96 lines 0 comments Download
D tools/clang/rewrite_scoped_array/tests/test-expected.cc View 1 chunk +0 lines, -21 lines 0 comments Download
D tools/clang/rewrite_scoped_array/tests/test-original.cc View 1 chunk +0 lines, -21 lines 0 comments Download
D tools/clang/rewrite_scoped_ptr_ctor_null/Makefile View 1 chunk +0 lines, -23 lines 0 comments Download
D tools/clang/rewrite_scoped_ptr_ctor_null/RewriteScopedPtrCtorNull.cpp View 1 chunk +0 lines, -198 lines 0 comments Download
D tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-expected.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D tools/clang/rewrite_scoped_ptr_ctor_null/tests/test-original.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M tools/clang/scripts/run_tool.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
dcheng
Ideally we'd use the support for serializing a list of clang::Replacements into YAML and then ...
6 years, 4 months ago (2014-08-06 18:09:46 UTC) #1
Nico
rslgtm https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/EmptyStringConverter.cpp File tools/clang/empty_string/EmptyStringConverter.cpp (right): https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/EmptyStringConverter.cpp#newcode185 tools/clang/empty_string/EmptyStringConverter.cpp:185: clang::tooling::newFrontendActionFactory(&match_finder); Does c++11 library stuff work in tools? ...
6 years, 4 months ago (2014-08-06 18:15:56 UTC) #2
dcheng
https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/EmptyStringConverter.cpp File tools/clang/empty_string/EmptyStringConverter.cpp (right): https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/EmptyStringConverter.cpp#newcode185 tools/clang/empty_string/EmptyStringConverter.cpp:185: clang::tooling::newFrontendActionFactory(&match_finder); On 2014/08/06 18:15:56, Nico (very away) wrote: > ...
6 years, 4 months ago (2014-08-06 20:06:54 UTC) #3
dcheng
Committed patchset #1 manually as 287841 (presubmit successful).
6 years, 4 months ago (2014-08-06 20:08:34 UTC) #4
Nico
6 years, 4 months ago (2014-08-06 20:08:48 UTC) #5
Message was sent while issue was closed.
On 2014/08/06 20:06:54, dcheng (OOO) wrote:
>
https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/Emp...
> File tools/clang/empty_string/EmptyStringConverter.cpp (right):
> 
>
https://codereview.chromium.org/448693003/diff/1/tools/clang/empty_string/Emp...
> tools/clang/empty_string/EmptyStringConverter.cpp:185:
> clang::tooling::newFrontendActionFactory(&match_finder);
> On 2014/08/06 18:15:56, Nico (very away) wrote:
> > Does c++11 library stuff work in tools? Does the build system set the rpath
> > right, or does the tool runner need to set LD_LIBRARY_PATH to let the tool
> find
> > libstdc++ 4.8 on linux (when running on Precise)?
> 
> The build system expects a "modern" C++ library to be installed and setup
> correctly:
> 
> checking whether Clang will select a modern C++ standard library... no
> configure: error:
> We detected a missing feature in the standard C++ library that was known to be
> missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
> C++11 problems with 4.6's library, and we don't support GCCs or libstdc++
older
> than 4.7. You will need to update your system and ensure Clang uses the newer
> standard library.
> 
> So I think it will just work as long as the dependencies are correctly set up.

No: It's possible to set CC and CXX to some gcc4.8 in a local folder but don't
get the RPATHs set. Then one needs to set LD_LIBRARY_PATH to make built binaries
run. (I know 'cause that's the state my linux box is in :-/)

But I suppose that's fine.

Powered by Google App Engine
This is Rietveld 408576698