<p dir="ltr"><br>
</p>
<br><div class="gmail_quote">On Wed, Dec 3, 2014, 00:49 Szabolcs Sipos <<a href="mailto:labuwx@balfug.com">labuwx@balfug.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I've been trying to use a .clang-tidy config file to pass parameters to<br>
my checker, but have had no success<br>
<br>
When I use the following syntax: (-> I found it here:<br>
<a href="http://clang.llvm.org/extra/clang-tidy.html#configuring-checks" target="_blank">http://clang.llvm.org/extra/<u></u>clang-tidy.html#configuring-<u></u>checks</a>)<br>
CheckOptions: {<br>
- key: my-check.SomeOption1<br>
value: 123<br>
- key: my-check.SomeOption2<br>
value: 'some other value'<br>
}<br>
<br>
I get this error message:<br>
YAML:2:4: error: Unexpected token. Expected Key, Flow Entry, or Flow<br>
Mapping End.<br>
- key: my-check.SomeOption1<br>
^<br>
<br>
I tried removing the whitespace the arrow points to -> same error,<br>
different location (before 123) -> whitespace removed -> a different error:<br>
YAML:3:10: error: Found unexpected ':' while scanning a plain scalar<br>
value:123<br>
^<br>
<br>
At this point I have no idea what to do. Can you spot the error?<br>
<br>
Thanks<br>
--<br>
Szabolcs Sipos<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</blockquote></div>