Index: clang/www/hacking.html =================================================================== --- clang/www/hacking.html +++ clang/www/hacking.html @@ -275,30 +275,8 @@

Creating Patch Files

-

To return changes to the Clang team, unless you have checkin - privileges, the preferred way is to send patch files - using LLVM's Phabricator with an explanation of what the patch is for. Clang follows LLVM's developer policy. - If your patch requires a wider discussion (for example, because it is an - architectural change), you can use the cfe-dev mailing list.

- -

To create these patch files, change directory - to the llvm/tools/clang root and run:

- -
svn diff (relative path) >(patch file name)
- -

For example, for getting the diffs of all of clang:

- -
svn diff . >~/mypatchfile.patch
- -

For example, for getting the diffs of a single file:

- -
svn diff lib/Parse/ParseDeclCXX.cpp >~/ParseDeclCXX.patch
- -

Note that the paths embedded in the patch depend on where you run it, - so changing directory to the llvm/tools/clang directory is recommended.

- -

It is also possible to use git to contribute to Clang.

+

To contribute changes to Clang see + LLVM's Getting started page

LLVM IR Generation