1 //===--- PPDirectiveParameter.h ---------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 // 9 // This file defines the base class for preprocessor directive parameters, such 10 // as limit(1) or suffix(x) for #embed. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_CLANG_LEX_PPDIRECTIVEPARAMETER_H 15 #define LLVM_CLANG_LEX_PPDIRECTIVEPARAMETER_H 16 17 #include "clang/Basic/SourceLocation.h" 18 19 namespace clang { 20 21 /// Captures basic information about a preprocessor directive parameter. 22 class PPDirectiveParameter { 23 SourceRange R; 24 25 public: PPDirectiveParameter(SourceRange R)26 PPDirectiveParameter(SourceRange R) : R(R) {} 27 getParameterRange()28 SourceRange getParameterRange() const { return R; } 29 }; 30 31 } // end namespace clang 32 33 #endif 34