This patch adds a FormatStyleSet for storing per-language FormatStyles for the
purposes of formatting code blocks inside the main code.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 13355 Build 13355: arc lint + arc unit
Event Timeline
lib/Format/Format.cpp | ||
---|---|---|
903–907 | Do you mean to build up a StyleSet structure? |
lib/Format/Format.cpp | ||
---|---|---|
920–921 | Optional: I'd probably slightly re-structure the above to: if (!LanguageFound) { if (Styles.empty() || Styles[0].Language != FS::LK_None) { return make_error_code(PE::Unsuitable); } ... } | |
935 | Should we rather check that a style that's added doesn't have its own Styles map? (I'd say you're not allowed to add a Style that was gotten into another StyleSet). |
Why unique_ptr?