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
29

.. create a compilation ..

33–34

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

79

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

81

... use the <a ...

82

... aimed at making ...

83

... using a development version ..

86

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

97

... clone the Ninja ...

105

.. just be copied ...

111

... all of this ...

123

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
29

Done.

33–34

Done.

79

Done.

81

Done.

82

Done.

83

Done.

86

Done.

97

Done.

105

Done.

111

Done.

123

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