1 //===--- iwyu_use_flags.h - describe various contextual features of uses --===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef INCLUDE_WHAT_YOU_USE_IWYU_USE_FLAGS_H_ 11 #define INCLUDE_WHAT_YOU_USE_IWYU_USE_FLAGS_H_ 12 13 namespace include_what_you_use { 14 15 // Flags describing special features of a use that influence IWYU analysis. 16 typedef unsigned UseFlags; 17 18 const UseFlags UF_None = 0; 19 const UseFlags UF_InCxxMethodBody = 1; // use is inside a C++ method body 20 const UseFlags UF_FunctionDfn = 2; // use is a function being defined 21 const UseFlags UF_ExplicitInstantiation = 4; // use targets an explicit instantiation 22 } 23 24 #endif 25