File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4788,7 +4788,7 @@ the configuration (without a prefix: ``Auto``).
47884788
47894789 You can also specify the language (``Cpp `` or ``ObjC ``) for ``.h `` files
47904790 by adding a ``// clang-format Language: `` line before the first
4791- non-comment and non-empty line, e.g. ``// clang-format Language: ObjC ``.
4791+ non-comment ( and non-empty) line, e.g. ``// clang-format Language: Cpp ``.
47924792
47934793 Possible values:
47944794
Original file line number Diff line number Diff line change @@ -3357,7 +3357,7 @@ struct FormatStyle {
33573357 // / \note
33583358 // / You can also specify the language (``Cpp`` or ``ObjC``) for ``.h`` files
33593359 // / by adding a ``// clang-format Language:`` line before the first
3360- // / non-comment and non-empty line, e.g. ``// clang-format Language: ObjC ``.
3360+ // / non-comment ( and non-empty) line, e.g. ``// clang-format Language: Cpp ``.
33613361 // / \endnote
33623362 // / \version 3.5
33633363 LanguageKind Language;
Original file line number Diff line number Diff line change @@ -4039,8 +4039,6 @@ static FormatStyle::LanguageKind getLanguageByComment(const Environment &Env) {
40394039 continue ;
40404040
40414041 Text = Text.trim ();
4042- // if (Text == "C")
4043- // return FormatStyle::LK_C;
40444042 if (Text == " Cpp" )
40454043 return FormatStyle::LK_Cpp;
40464044 if (Text == " ObjC" )
You can’t perform that action at this time.
0 commit comments