[clang] 439209d - [docs] Fix old path for clang-format

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 27 13:14:21 PDT 2022


Author: Ji, Jinsong
Date: 2022-10-27T13:14:05-07:00
New Revision: 439209dbcbf2ceb09cd445f8f59b26e8b98d4f8e

URL: https://github.com/llvm/llvm-project/commit/439209dbcbf2ceb09cd445f8f59b26e8b98d4f8e
DIFF: https://github.com/llvm/llvm-project/commit/439209dbcbf2ceb09cd445f8f59b26e8b98d4f8e.diff

LOG: [docs] Fix old path for clang-format

The path in vimrc was old, replace it with <path-to-this-file> to be
consistent with above.

Added: 
    

Modified: 
    clang/docs/ClangFormat.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst
index 2ad3b50339eb..98350a04ccda 100644
--- a/clang/docs/ClangFormat.rst
+++ b/clang/docs/ClangFormat.rst
@@ -168,7 +168,7 @@ your `.vimrc`:
 
   function! Formatonsave()
     let l:format
diff  = 1
-    pyf ~/llvm/tools/clang/tools/clang-format/clang-format.py
+    pyf <path-to-this-file>/clang-format.py
   endfunction
   autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave()
 


        


More information about the cfe-commits mailing list