clang  14.0.0git
Public Member Functions | Public Attributes | List of all members
clang::format::AdditionalKeywords Struct Reference

Encapsulates keywords that are context sensitive or for languages not properly supported by Clang's lexer. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/FormatToken.h"

Collaboration diagram for clang::format::AdditionalKeywords:
Collaboration graph
[legend]

Public Member Functions

 AdditionalKeywords (IdentifierTable &IdentTable)
 
bool IsJavaScriptIdentifier (const FormatToken &Tok, bool AcceptIdentifierName=true) const
 Returns true if Tok is a true JavaScript identifier, returns false if it is a keyword or a pseudo keyword. More...
 
bool isCSharpKeyword (const FormatToken &Tok) const
 Returns true if Tok is a C# keyword, returns false if it is a anything else. More...
 

Public Attributes

IdentifierInfokw_final
 
IdentifierInfokw_override
 
IdentifierInfokw_in
 
IdentifierInfokw_of
 
IdentifierInfokw_CF_CLOSED_ENUM
 
IdentifierInfokw_CF_ENUM
 
IdentifierInfokw_CF_OPTIONS
 
IdentifierInfokw_NS_CLOSED_ENUM
 
IdentifierInfokw_NS_ENUM
 
IdentifierInfokw_NS_OPTIONS
 
IdentifierInfokw___except
 
IdentifierInfokw___has_include
 
IdentifierInfokw___has_include_next
 
IdentifierInfokw_as
 
IdentifierInfokw_async
 
IdentifierInfokw_await
 
IdentifierInfokw_declare
 
IdentifierInfokw_finally
 
IdentifierInfokw_from
 
IdentifierInfokw_function
 
IdentifierInfokw_get
 
IdentifierInfokw_import
 
IdentifierInfokw_infer
 
IdentifierInfokw_is
 
IdentifierInfokw_let
 
IdentifierInfokw_module
 
IdentifierInfokw_readonly
 
IdentifierInfokw_set
 
IdentifierInfokw_type
 
IdentifierInfokw_typeof
 
IdentifierInfokw_var
 
IdentifierInfokw_yield
 
IdentifierInfokw_abstract
 
IdentifierInfokw_assert
 
IdentifierInfokw_extends
 
IdentifierInfokw_implements
 
IdentifierInfokw_instanceof
 
IdentifierInfokw_interface
 
IdentifierInfokw_native
 
IdentifierInfokw_package
 
IdentifierInfokw_synchronized
 
IdentifierInfokw_throws
 
IdentifierInfokw_mark
 
IdentifierInfokw_extend
 
IdentifierInfokw_option
 
IdentifierInfokw_optional
 
IdentifierInfokw_repeated
 
IdentifierInfokw_required
 
IdentifierInfokw_returns
 
IdentifierInfokw_signals
 
IdentifierInfokw_qsignals
 
IdentifierInfokw_slots
 
IdentifierInfokw_qslots
 
IdentifierInfokw_dollar
 
IdentifierInfokw_base
 
IdentifierInfokw_byte
 
IdentifierInfokw_checked
 
IdentifierInfokw_decimal
 
IdentifierInfokw_delegate
 
IdentifierInfokw_event
 
IdentifierInfokw_fixed
 
IdentifierInfokw_foreach
 
IdentifierInfokw_implicit
 
IdentifierInfokw_internal
 
IdentifierInfokw_lock
 
IdentifierInfokw_null
 
IdentifierInfokw_object
 
IdentifierInfokw_out
 
IdentifierInfokw_params
 
IdentifierInfokw_ref
 
IdentifierInfokw_string
 
IdentifierInfokw_stackalloc
 
IdentifierInfokw_sbyte
 
IdentifierInfokw_sealed
 
IdentifierInfokw_uint
 
IdentifierInfokw_ulong
 
IdentifierInfokw_unchecked
 
IdentifierInfokw_unsafe
 
IdentifierInfokw_ushort
 
IdentifierInfokw_when
 
IdentifierInfokw_where
 

Detailed Description

Encapsulates keywords that are context sensitive or for languages not properly supported by Clang's lexer.

Definition at line 842 of file FormatToken.h.

Constructor & Destructor Documentation

◆ AdditionalKeywords()

clang::format::AdditionalKeywords::AdditionalKeywords ( IdentifierTable IdentTable)
inline

Member Function Documentation

◆ isCSharpKeyword()

bool clang::format::AdditionalKeywords::isCSharpKeyword ( const FormatToken Tok) const
inline

Returns true if Tok is a C# keyword, returns false if it is a anything else.

Definition at line 1128 of file FormatToken.h.

References clang::Token::getIdentifierInfo(), clang::Token::getKind(), clang::format::FormatToken::is(), and clang::format::FormatToken::Tok.

◆ IsJavaScriptIdentifier()

bool clang::format::AdditionalKeywords::IsJavaScriptIdentifier ( const FormatToken Tok,
bool  AcceptIdentifierName = true 
) const
inline

Returns true if Tok is a true JavaScript identifier, returns false if it is a keyword or a pseudo keyword.

If AcceptIdentifierName is true, returns true not only for keywords,

Definition at line 1061 of file FormatToken.h.

References clang::Token::getIdentifierInfo(), clang::Token::getKind(), and clang::format::FormatToken::Tok.

Member Data Documentation

◆ kw___except

IdentifierInfo* clang::format::AdditionalKeywords::kw___except

Definition at line 969 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw___has_include

IdentifierInfo* clang::format::AdditionalKeywords::kw___has_include

Definition at line 970 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw___has_include_next

IdentifierInfo* clang::format::AdditionalKeywords::kw___has_include_next

Definition at line 971 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_abstract

IdentifierInfo* clang::format::AdditionalKeywords::kw_abstract

Definition at line 995 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_as

IdentifierInfo* clang::format::AdditionalKeywords::kw_as

Definition at line 974 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_assert

IdentifierInfo* clang::format::AdditionalKeywords::kw_assert

Definition at line 996 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_async

IdentifierInfo* clang::format::AdditionalKeywords::kw_async

Definition at line 975 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_await

IdentifierInfo* clang::format::AdditionalKeywords::kw_await

Definition at line 976 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_base

IdentifierInfo* clang::format::AdditionalKeywords::kw_base

Definition at line 1025 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_byte

IdentifierInfo* clang::format::AdditionalKeywords::kw_byte

Definition at line 1026 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_CF_CLOSED_ENUM

IdentifierInfo* clang::format::AdditionalKeywords::kw_CF_CLOSED_ENUM

Definition at line 963 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_CF_ENUM

IdentifierInfo* clang::format::AdditionalKeywords::kw_CF_ENUM

Definition at line 964 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_CF_OPTIONS

IdentifierInfo* clang::format::AdditionalKeywords::kw_CF_OPTIONS

Definition at line 965 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_checked

IdentifierInfo* clang::format::AdditionalKeywords::kw_checked

Definition at line 1027 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_decimal

IdentifierInfo* clang::format::AdditionalKeywords::kw_decimal

Definition at line 1028 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_declare

IdentifierInfo* clang::format::AdditionalKeywords::kw_declare

Definition at line 977 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_delegate

IdentifierInfo* clang::format::AdditionalKeywords::kw_delegate

Definition at line 1029 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_dollar

IdentifierInfo* clang::format::AdditionalKeywords::kw_dollar

Definition at line 1024 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_event

IdentifierInfo* clang::format::AdditionalKeywords::kw_event

Definition at line 1030 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_extend

IdentifierInfo* clang::format::AdditionalKeywords::kw_extend

Definition at line 1010 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_extends

IdentifierInfo* clang::format::AdditionalKeywords::kw_extends

Definition at line 997 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_final

IdentifierInfo* clang::format::AdditionalKeywords::kw_final

Definition at line 959 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_finally

IdentifierInfo* clang::format::AdditionalKeywords::kw_finally

Definition at line 978 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_fixed

IdentifierInfo* clang::format::AdditionalKeywords::kw_fixed

Definition at line 1031 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_foreach

IdentifierInfo* clang::format::AdditionalKeywords::kw_foreach

Definition at line 1032 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_from

IdentifierInfo* clang::format::AdditionalKeywords::kw_from

Definition at line 979 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_function

IdentifierInfo* clang::format::AdditionalKeywords::kw_function

Definition at line 980 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_get

IdentifierInfo* clang::format::AdditionalKeywords::kw_get

Definition at line 981 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_implements

IdentifierInfo* clang::format::AdditionalKeywords::kw_implements

Definition at line 998 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_implicit

IdentifierInfo* clang::format::AdditionalKeywords::kw_implicit

Definition at line 1033 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_import

IdentifierInfo* clang::format::AdditionalKeywords::kw_import

Definition at line 982 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_in

IdentifierInfo* clang::format::AdditionalKeywords::kw_in

Definition at line 961 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_infer

IdentifierInfo* clang::format::AdditionalKeywords::kw_infer

Definition at line 983 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_instanceof

IdentifierInfo* clang::format::AdditionalKeywords::kw_instanceof

Definition at line 999 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_interface

IdentifierInfo* clang::format::AdditionalKeywords::kw_interface

Definition at line 1000 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_internal

IdentifierInfo* clang::format::AdditionalKeywords::kw_internal

Definition at line 1034 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_is

IdentifierInfo* clang::format::AdditionalKeywords::kw_is

Definition at line 984 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_let

IdentifierInfo* clang::format::AdditionalKeywords::kw_let

Definition at line 985 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_lock

IdentifierInfo* clang::format::AdditionalKeywords::kw_lock

Definition at line 1036 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_mark

IdentifierInfo* clang::format::AdditionalKeywords::kw_mark

Definition at line 1007 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_module

IdentifierInfo* clang::format::AdditionalKeywords::kw_module

Definition at line 986 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_native

IdentifierInfo* clang::format::AdditionalKeywords::kw_native

Definition at line 1001 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_NS_CLOSED_ENUM

IdentifierInfo* clang::format::AdditionalKeywords::kw_NS_CLOSED_ENUM

Definition at line 966 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_NS_ENUM

IdentifierInfo* clang::format::AdditionalKeywords::kw_NS_ENUM

Definition at line 967 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_NS_OPTIONS

IdentifierInfo* clang::format::AdditionalKeywords::kw_NS_OPTIONS

Definition at line 968 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_null

IdentifierInfo* clang::format::AdditionalKeywords::kw_null

Definition at line 1037 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_object

IdentifierInfo* clang::format::AdditionalKeywords::kw_object

Definition at line 1038 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_of

IdentifierInfo* clang::format::AdditionalKeywords::kw_of

Definition at line 962 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_option

IdentifierInfo* clang::format::AdditionalKeywords::kw_option

Definition at line 1011 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_optional

IdentifierInfo* clang::format::AdditionalKeywords::kw_optional

Definition at line 1012 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_out

IdentifierInfo* clang::format::AdditionalKeywords::kw_out

Definition at line 1039 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_override

IdentifierInfo* clang::format::AdditionalKeywords::kw_override

Definition at line 960 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_package

IdentifierInfo* clang::format::AdditionalKeywords::kw_package

Definition at line 1002 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_params

IdentifierInfo* clang::format::AdditionalKeywords::kw_params

Definition at line 1041 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_qsignals

IdentifierInfo* clang::format::AdditionalKeywords::kw_qsignals

Definition at line 1019 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_qslots

IdentifierInfo* clang::format::AdditionalKeywords::kw_qslots

Definition at line 1021 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_readonly

IdentifierInfo* clang::format::AdditionalKeywords::kw_readonly

Definition at line 987 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_ref

IdentifierInfo* clang::format::AdditionalKeywords::kw_ref

Definition at line 1043 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_repeated

IdentifierInfo* clang::format::AdditionalKeywords::kw_repeated

Definition at line 1013 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_required

IdentifierInfo* clang::format::AdditionalKeywords::kw_required

Definition at line 1014 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_returns

IdentifierInfo* clang::format::AdditionalKeywords::kw_returns

Definition at line 1015 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_sbyte

IdentifierInfo* clang::format::AdditionalKeywords::kw_sbyte

Definition at line 1046 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_sealed

IdentifierInfo* clang::format::AdditionalKeywords::kw_sealed

Definition at line 1047 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_set

IdentifierInfo* clang::format::AdditionalKeywords::kw_set

Definition at line 988 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_signals

IdentifierInfo* clang::format::AdditionalKeywords::kw_signals

Definition at line 1018 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_slots

IdentifierInfo* clang::format::AdditionalKeywords::kw_slots

Definition at line 1020 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_stackalloc

IdentifierInfo* clang::format::AdditionalKeywords::kw_stackalloc

Definition at line 1045 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_string

IdentifierInfo* clang::format::AdditionalKeywords::kw_string

Definition at line 1044 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_synchronized

IdentifierInfo* clang::format::AdditionalKeywords::kw_synchronized

Definition at line 1003 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_throws

IdentifierInfo* clang::format::AdditionalKeywords::kw_throws

Definition at line 1004 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_type

IdentifierInfo* clang::format::AdditionalKeywords::kw_type

Definition at line 989 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_typeof

IdentifierInfo* clang::format::AdditionalKeywords::kw_typeof

Definition at line 990 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_uint

IdentifierInfo* clang::format::AdditionalKeywords::kw_uint

Definition at line 1048 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_ulong

IdentifierInfo* clang::format::AdditionalKeywords::kw_ulong

Definition at line 1049 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_unchecked

IdentifierInfo* clang::format::AdditionalKeywords::kw_unchecked

Definition at line 1050 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_unsafe

IdentifierInfo* clang::format::AdditionalKeywords::kw_unsafe

Definition at line 1051 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_ushort

IdentifierInfo* clang::format::AdditionalKeywords::kw_ushort

Definition at line 1052 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_var

IdentifierInfo* clang::format::AdditionalKeywords::kw_var

Definition at line 991 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_when

IdentifierInfo* clang::format::AdditionalKeywords::kw_when

Definition at line 1053 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_where

IdentifierInfo* clang::format::AdditionalKeywords::kw_where

Definition at line 1054 of file FormatToken.h.

Referenced by AdditionalKeywords().

◆ kw_yield

IdentifierInfo* clang::format::AdditionalKeywords::kw_yield

Definition at line 992 of file FormatToken.h.

Referenced by AdditionalKeywords().


The documentation for this struct was generated from the following file: