[clang-tools-extra] r280359 - [include-fixer] Fix an undefined variable exception in vim script when there is

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 1 05:17:28 PDT 2016


Author: hokein
Date: Thu Sep  1 07:17:28 2016
New Revision: 280359

URL: http://llvm.org/viewvc/llvm-project?rev=280359&view=rev
Log:
[include-fixer] Fix an undefined variable exception in vim script when there is
only one candidate header.

Modified:
    clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py

Modified: clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py?rev=280359&r1=280358&r2=280359&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py (original)
+++ clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py Thu Sep  1 07:17:28 2016
@@ -149,6 +149,7 @@ def main():
     return
 
   try:
+    selected = unique_headers[0]
     inserted_header_infos = header_infos
     if len(unique_headers) > 1:
       selected = GetUserSelection(




More information about the cfe-commits mailing list