|
19 | 19 | #include "clang/Basic/OperatorPrecedence.h" |
20 | 20 | #include "clang/Format/Format.h" |
21 | 21 | #include "clang/Lex/Lexer.h" |
| 22 | +#include "clang/Support/Compiler.h" |
22 | 23 | #include <unordered_set> |
23 | 24 |
|
24 | 25 | namespace clang { |
@@ -220,7 +221,7 @@ enum TokenType : uint8_t { |
220 | 221 | }; |
221 | 222 |
|
222 | 223 | /// Determines the name of a token type. |
223 | | -const char *getTokenTypeName(TokenType Type); |
| 224 | +CLANG_ABI const char *getTokenTypeName(TokenType Type); |
224 | 225 |
|
225 | 226 | // Represents what type of block a set of braces open. |
226 | 227 | enum BraceBlockKind { BK_Unknown, BK_Block, BK_BracedInit }; |
@@ -297,7 +298,7 @@ class AnnotatedLine; |
297 | 298 |
|
298 | 299 | /// A wrapper around a \c Token storing information about the |
299 | 300 | /// whitespace characters preceding it. |
300 | | -struct FormatToken { |
| 301 | +struct CLANG_ABI FormatToken { |
301 | 302 | FormatToken() |
302 | 303 | : HasUnescapedNewline(false), IsMultiline(false), IsFirst(false), |
303 | 304 | MustBreakBefore(false), MustBreakBeforeFinalized(false), |
@@ -931,7 +932,7 @@ struct FormatToken { |
931 | 932 | class ContinuationIndenter; |
932 | 933 | struct LineState; |
933 | 934 |
|
934 | | -class TokenRole { |
| 935 | +class CLANG_ABI TokenRole { |
935 | 936 | public: |
936 | 937 | TokenRole(const FormatStyle &Style) : Style(Style) {} |
937 | 938 | virtual ~TokenRole(); |
@@ -969,7 +970,7 @@ class TokenRole { |
969 | 970 | const FormatStyle &Style; |
970 | 971 | }; |
971 | 972 |
|
972 | | -class CommaSeparatedList : public TokenRole { |
| 973 | +class CLANG_ABI CommaSeparatedList : public TokenRole { |
973 | 974 | public: |
974 | 975 | CommaSeparatedList(const FormatStyle &Style) |
975 | 976 | : TokenRole(Style), HasNestedBracedList(false) {} |
@@ -1981,7 +1982,7 @@ inline bool continuesLineComment(const FormatToken &FormatTok, |
1981 | 1982 | } |
1982 | 1983 |
|
1983 | 1984 | // Returns \c true if \c Current starts a new parameter. |
1984 | | -bool startsNextParameter(const FormatToken &Current, const FormatStyle &Style); |
| 1985 | +CLANG_ABI bool startsNextParameter(const FormatToken &Current, const FormatStyle &Style); |
1985 | 1986 |
|
1986 | 1987 | } // namespace format |
1987 | 1988 | } // namespace clang |
|
0 commit comments