]> granicus.if.org Git - clang/commitdiff
Add comment about PragmaIntroducerKind
authorRenato Golin <renato.golin@linaro.org>
Wed, 11 Dec 2013 14:45:53 +0000 (14:45 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 11 Dec 2013 14:45:53 +0000 (14:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197043 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Pragma.h

index 087448fbc5ff60bfbc341465118741a8269b040d..4832d65364459fd7883d3f999455eb7f12561715 100644 (file)
@@ -28,6 +28,12 @@ namespace clang {
   /**
    * \brief Describes how the pragma was introduced, e.g., with \#pragma,
    * _Pragma, or __pragma.
+   *
+   * This is a callback and there is code outside of clang using it.
+   *
+   * The source location passed down together with the introducer kind is
+   * the one of the token *following* the introducer, so it would not be
+   * immediate for clients to re-lex to see which introducer it was.
    */
   enum PragmaIntroducerKind {
     /**