zenilib: zenilib/jni/external/angle/src/compiler/preprocessor/DirectiveHandlerBase.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DirectiveHandlerBase.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6
7 #ifndef COMPILER_PREPROCESSOR_DIRECTIVE_HANDLER_H_
8 #define COMPILER_PREPROCESSOR_DIRECTIVE_HANDLER_H_
9
10 #include <string>
11
12 namespace pp
13 {
14
15 struct SourceLocation;
16
17 // Base class for handling directives.
18 // Preprocessor uses this class to notify the clients about certain
19 // preprocessor directives. Derived classes are responsible for
20 // handling them in an appropriate manner.
21 class DirectiveHandler
22 {
23 public:
24 virtual ~DirectiveHandler();
25
26 virtual void handleError(const SourceLocation& loc,
27 const std::string& msg) = 0;
28
29 // Handle pragma of form: #pragma name[(value)]
30 virtual void handlePragma(const SourceLocation& loc,
31 const std::string& name,
32 const std::string& value) = 0;
33
34 virtual void handleExtension(const SourceLocation& loc,
35 const std::string& name,
36 const std::string& behavior) = 0;
37
38 virtual void handleVersion(const SourceLocation& loc,
39 int version) = 0;
40 };
41
42 } // namespace pp
43 #endif // COMPILER_PREPROCESSOR_DIRECTIVE_HANDLER_H_
pp::DirectiveHandler::handleError
virtual void handleError(const SourceLocation &loc, const std::string &msg)=0
pp::DirectiveHandler::handleExtension
virtual void handleExtension(const SourceLocation &loc, const std::string &name, const std::string &behavior)=0
pp
png_sPLT_entryp pp
Definition: pngrutil.c:1375
version
int const char * version
Definition: zlib.h:813
pp::DirectiveHandler::handleVersion
virtual void handleVersion(const SourceLocation &loc, int version)=0
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
pp::DirectiveHandler::~DirectiveHandler
virtual ~DirectiveHandler()
Definition: DirectiveHandlerBase.cpp:12
value
EGLSurface EGLint void ** value
Definition: eglext.h:301
string
GLsizei const GLcharARB ** string
Definition: glew.h:5638
pp::DirectiveHandler::handlePragma
virtual void handlePragma(const SourceLocation &loc, const std::string &name, const std::string &value)=0
pp::DirectiveHandler
Definition: DirectiveHandlerBase.h:21
pp::SourceLocation
Definition: SourceLocation.h:13