================ @@ -3353,7 +3353,12 @@ struct FormatStyle { } bool isTableGen() const { return Language == LK_TableGen; } - /// Language, this format style is targeted at. + /// The language that this format style targets. + /// \note + /// You can also specify the language (``Cpp`` or ``ObjC``) for ``.h`` files + /// by adding a ``// clang-format Language:`` line before the first + /// non-comment and non-empty line, e.g. ``// clang-format Language: ObjC``. ---------------- HazardyKnusperkeks wrote:
Should we allow an empty line? I for one have always the doxygen comment at the top and would use a blank line between other comments. https://github.com/llvm/llvm-project/pull/128122 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits