1*58e8683aSKrzysztof Parzyszek //===------ LangOptions.cpp -----------------------------------------------===// 2*58e8683aSKrzysztof Parzyszek // 3*58e8683aSKrzysztof Parzyszek // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*58e8683aSKrzysztof Parzyszek // See https://llvm.org/LICENSE.txt for license information. 5*58e8683aSKrzysztof Parzyszek // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*58e8683aSKrzysztof Parzyszek // 7*58e8683aSKrzysztof Parzyszek //===----------------------------------------------------------------------===// 8*58e8683aSKrzysztof Parzyszek // 9*58e8683aSKrzysztof Parzyszek // Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/ 10*58e8683aSKrzysztof Parzyszek // 11*58e8683aSKrzysztof Parzyszek //===----------------------------------------------------------------------===// 12*58e8683aSKrzysztof Parzyszek 13*58e8683aSKrzysztof Parzyszek #include "flang/Common/LangOptions.h" 14*58e8683aSKrzysztof Parzyszek #include <string.h> 15*58e8683aSKrzysztof Parzyszek 16*58e8683aSKrzysztof Parzyszek namespace Fortran::common { 17*58e8683aSKrzysztof Parzyszek 18*58e8683aSKrzysztof Parzyszek LangOptions::LangOptions() { 19*58e8683aSKrzysztof Parzyszek #define LANGOPT(Name, Bits, Default) Name = Default; 20*58e8683aSKrzysztof Parzyszek #define ENUM_LANGOPT(Name, Type, Bits, Default) set##Name(Default); 21*58e8683aSKrzysztof Parzyszek #include "flang/Common/LangOptions.def" 22*58e8683aSKrzysztof Parzyszek } 23*58e8683aSKrzysztof Parzyszek 24*58e8683aSKrzysztof Parzyszek } // end namespace Fortran::common 25