clang  9.0.0svn
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 "/opt/doxygen-docs/src/llvm/tools/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) 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_ENUM
 
IdentifierInfokw_CF_OPTIONS
 
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
 

Detailed Description

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

Definition at line 674 of file FormatToken.h.

Constructor & Destructor Documentation

◆ AdditionalKeywords()

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

Definition at line 675 of file FormatToken.h.

References clang::IdentifierTable::get().

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 889 of file FormatToken.h.

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

Referenced by clang::format::FormatTokenLexer::lex().

◆ IsJavaScriptIdentifier()

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

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

Definition at line 881 of file FormatToken.h.

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

Member Data Documentation

◆ kw___except

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

Definition at line 794 of file FormatToken.h.

◆ kw___has_include

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

Definition at line 795 of file FormatToken.h.

◆ kw___has_include_next

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

Definition at line 796 of file FormatToken.h.

◆ kw_abstract

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

Definition at line 820 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_as

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

Definition at line 799 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_assert

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

Definition at line 821 of file FormatToken.h.

◆ kw_async

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

Definition at line 800 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().

◆ kw_await

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

Definition at line 801 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_base

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

Definition at line 850 of file FormatToken.h.

◆ kw_byte

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

Definition at line 851 of file FormatToken.h.

◆ kw_CF_ENUM

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

Definition at line 790 of file FormatToken.h.

◆ kw_CF_OPTIONS

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

Definition at line 791 of file FormatToken.h.

◆ kw_checked

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

Definition at line 852 of file FormatToken.h.

◆ kw_decimal

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

Definition at line 853 of file FormatToken.h.

◆ kw_declare

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

Definition at line 802 of file FormatToken.h.

◆ kw_delegate

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

Definition at line 854 of file FormatToken.h.

◆ kw_dollar

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

Definition at line 849 of file FormatToken.h.

◆ kw_event

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

Definition at line 855 of file FormatToken.h.

◆ kw_extend

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

Definition at line 835 of file FormatToken.h.

◆ kw_extends

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

Definition at line 822 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_final

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

Definition at line 786 of file FormatToken.h.

◆ kw_finally

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

Definition at line 803 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().

◆ kw_fixed

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

Definition at line 856 of file FormatToken.h.

◆ kw_foreach

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

Definition at line 857 of file FormatToken.h.

◆ kw_from

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

Definition at line 804 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_function

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

◆ kw_get

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

Definition at line 806 of file FormatToken.h.

◆ kw_implements

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

Definition at line 823 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_implicit

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

Definition at line 858 of file FormatToken.h.

◆ kw_import

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

Definition at line 807 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().

◆ kw_in

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

◆ kw_infer

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

Definition at line 808 of file FormatToken.h.

◆ kw_instanceof

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

◆ kw_interface

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

Definition at line 825 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_internal

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

Definition at line 859 of file FormatToken.h.

◆ kw_is

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

Definition at line 809 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_let

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

Definition at line 810 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().

◆ kw_lock

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

Definition at line 861 of file FormatToken.h.

◆ kw_mark

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

Definition at line 832 of file FormatToken.h.

◆ kw_module

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

Definition at line 811 of file FormatToken.h.

◆ kw_native

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

Definition at line 826 of file FormatToken.h.

◆ kw_NS_ENUM

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

Definition at line 792 of file FormatToken.h.

◆ kw_NS_OPTIONS

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

Definition at line 793 of file FormatToken.h.

◆ kw_null

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

Definition at line 862 of file FormatToken.h.

◆ kw_object

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

Definition at line 863 of file FormatToken.h.

◆ kw_of

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

Definition at line 789 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_option

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

Definition at line 836 of file FormatToken.h.

◆ kw_optional

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

Definition at line 837 of file FormatToken.h.

◆ kw_out

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

Definition at line 864 of file FormatToken.h.

◆ kw_override

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

Definition at line 787 of file FormatToken.h.

◆ kw_package

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

Definition at line 827 of file FormatToken.h.

◆ kw_params

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

Definition at line 866 of file FormatToken.h.

◆ kw_qsignals

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

Definition at line 844 of file FormatToken.h.

◆ kw_qslots

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

Definition at line 846 of file FormatToken.h.

◆ kw_readonly

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

Definition at line 812 of file FormatToken.h.

◆ kw_ref

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

Definition at line 868 of file FormatToken.h.

◆ kw_repeated

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

Definition at line 838 of file FormatToken.h.

◆ kw_required

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

Definition at line 839 of file FormatToken.h.

◆ kw_returns

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

Definition at line 840 of file FormatToken.h.

◆ kw_sbyte

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

Definition at line 871 of file FormatToken.h.

◆ kw_sealed

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

Definition at line 872 of file FormatToken.h.

◆ kw_set

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

Definition at line 813 of file FormatToken.h.

◆ kw_signals

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

Definition at line 843 of file FormatToken.h.

◆ kw_slots

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

Definition at line 845 of file FormatToken.h.

◆ kw_stackalloc

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

Definition at line 870 of file FormatToken.h.

◆ kw_string

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

Definition at line 869 of file FormatToken.h.

◆ kw_synchronized

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

Definition at line 828 of file FormatToken.h.

◆ kw_throws

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

Definition at line 829 of file FormatToken.h.

Referenced by clang::format::mustBeJSIdent().

◆ kw_type

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

Definition at line 814 of file FormatToken.h.

◆ kw_typeof

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

Definition at line 815 of file FormatToken.h.

◆ kw_uint

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

Definition at line 873 of file FormatToken.h.

◆ kw_ulong

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

Definition at line 874 of file FormatToken.h.

◆ kw_unchecked

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

Definition at line 875 of file FormatToken.h.

◆ kw_unsafe

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

Definition at line 876 of file FormatToken.h.

◆ kw_ushort

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

Definition at line 877 of file FormatToken.h.

◆ kw_var

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

Definition at line 816 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().

◆ kw_yield

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

Definition at line 817 of file FormatToken.h.

Referenced by clang::format::isJSDeclOrStmt(), and clang::format::mustBeJSIdent().


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