<div dir="ltr">Thanks and sorry for not testing more thoroughly. Submitted in r235162.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 17, 2015 at 9:52 AM, Schlottke, Michael <span dir="ltr"><<a href="mailto:M.Schlottke@aia.rwth-aachen.de" target="_blank">M.Schlottke@aia.rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
in r235080 a “fallback_style” option was introduced to clang-format.py. However, now clang-format.py does not work anymore if no fallback style was defined in vim:<br>
<br>
Traceback (most recent call last):<br>
  File "<string>", line 1, in <module><br>
  File "/home/mic/.pool/.src/llvm/tools/clang/tools/clang-format/clang-format.py", line 89, in <module><br>
    main()<br>
  File "/home/mic/.pool/.src/llvm/tools/clang/tools/clang-format/clang-format.py", line 63, in main<br>
    if fallback_style:<br>
NameError: global name 'fallback_style' is not defined<br>
<br>
I’ve included a patch to initialize fallback_style to None for the case where g:clang_format_fallback_style is not set in vim.<br>
<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
</font></span><br>
P.S.: Please excuse if this should not be the right venue to post this bug/patch, this is my first attempt.<br>
<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>