<div dir="ltr"><div>Hello,</div><div><br></div><div>My name is Yuka Takahshi and I would like to ask few questions regarding to GSoC project : bash-autocompletion for clang.</div><div>We are now trying to build flag completions for which we call "value".</div><div>Eg. in -std=c++11, c++11 is a "value", and in -analyzer-checker=alpha.cplusplus, alpha.cplusplus is a "value".</div><div><br></div><div>We are planning to implement most of the code in OptTable.cpp, in order to reuse OptTable, which is generated by Options.inc.</div><div>Options.inc is generated via Tablegen from Options.td, so we are planning to add the information of values into Options.td.</div><div><br></div><div>I would like to ask for a advice regarding how to implement the flag like "-std=" and "-analyzer-checker=".</div><div>These flags are unique because their value information are already in LangStandards.def for "-std=", and Checkers.td for "-analyzer-checker=".</div><div>We are thinking to reuse these information and add these information to Options.inc, so that we can handle the flag completion in unified manner.</div><div>This way of implementation has further benefits from this GSoC project, because from this we can make documentation more simply and reduce custom handling of each value and code duplication.</div><div><br></div><div>The problem is that, we are not sure what is the best way for this implementaion.</div><div>For flags which are not like "-std=" and "-analyzer-checker=", we decided to add a class to hold the value information in Options.td. Eg. for "-stdlib=", ArgValues<"libc++, libstdc++, platform">.</div><div>So we are looking for how to generate something like "libc++, libstdc++, platform" from LangStandards.def and Checkers.td for "-std=" and "-analyzer-checker=".</div><div><br></div><div><br></div><div>Regards,</div><div> Yuka</div><div><br></div></div>