This is an archive of the discontinued LLVM Phabricator instance.

How to set up clang tools for llvm
ClosedPublic

Authored by alexfh on Jul 10 2012, 10:41 AM.

Details

Summary

How to guide for setting up clang tooling for llvm repo.

Diff Detail

Event Timeline

Looks good. A few nits here and there.

docs/HowToSetupToolingForLLVM.html
28

.. create a compilation ..

32–33

In either case you need to configure your build using CMake to use clang tools.

78

Add the section separators (<!-- =...= -->) around this as well.

80

... use the <a ...

81

... aimed at making ...

82

... using a development version ..

85

I'd remove "when this how-to is being written"..

96

... clone the Ninja ...

104

.. just be copied ...

110

... all of this ...

122

Really? "For lazy people"?

Let's see whether replying works...

Looks like inline comments don't work :(

alexfh updated this revision to Unknown Object (????).Jul 11 2012, 3:43 AM

Updated text as per djasper's comments.

alexfh updated this revision to Unknown Object (????).Jul 11 2012, 3:45 AM

Trying to remove unrelated diffs...

alexfh added inline comments.Jul 11 2012, 3:54 AM
docs/HowToSetupToolingForLLVM.html
28

Done.

32–33

Done.

78

Done.

80

Done.

81

Done.

82

Done.

85

Done.

96

Done.

104

Done.

110

Done.

122

Is this wrong? Anyway, to be more polite, I changed this to a more pleasant wording ;)

Can we add a short note on vim integration:

  • VIM integration **

Put this into your .vimrc:
set makeprg=clang-check\ %
map <F5> :make<CR><CR>

When editing C++ code, hit F5 to reparse the current buffer. The
output will go into the error window, which you can enable with :cope.

alexfh updated this revision to Unknown Object (????).Jul 11 2012, 4:38 AM

Added vim integration tips.

klimek accepted this revision.Jul 11 2012, 4:54 AM
alexfh closed this revision.Jul 11 2012, 7:27 AM