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
Event Timeline
lib/Format/Format.cpp | ||
---|---|---|
899–903 | Do you mean to build up a StyleSet structure? |
lib/Format/Format.cpp | ||
---|---|---|
918–919 | 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); } ... } | |
934 | 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?