Skip to content

Commit 97e9ea0

Browse files
authored
Minor cleanup
1 parent 507c54a commit 97e9ea0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

clang/docs/ClangFormatStyleOptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

clang/include/clang/Format/Format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

clang/lib/Format/Format.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)