Skip to content

Commit 850bdd0

Browse files
committed
New-line terminate somefiles and improve readability
1 parent 5c1e27a commit 850bdd0

14 files changed

+17
-19
lines changed

.codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ parsers:
2222
comment:
2323
layout: "reach, diff, flags, tree, files"
2424
behavior: default
25-
require_changes: no
25+
require_changes: no

.readthedocs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ build:
1313
- cmake
1414
- libclang-13-dev
1515
- llvm-13-dev
16-
- llvm-13-tools
16+
- llvm-13-tools

CMakeLists.txt

+4-6
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ include(GNUInstallDirs)
154154
message(STATUS "Found supported version: LLVM ${LLVM_PACKAGE_VERSION}")
155155
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
156156

157-
## Find supported LLD only while building for webassembly against emscripten
157+
## Find supported LLD only while building for webassembly against emscripten
158158

159159
if(EMSCRIPTEN)
160160
if (DEFINED LLD_VERSION)
@@ -236,14 +236,14 @@ endif()
236236
set (CMAKE_CXX_STANDARD 17)
237237
endif()
238238
if (CMAKE_CXX_STANDARD LESS 17)
239-
message(fatal "LLVM/CppInterOp requires c++17 or later")
239+
message(fatal "LLVM/CppInterOp requires C++17 or later")
240240
endif()
241241
elseif (CLANG_VERSION_MAJOR GREATER_EQUAL 13)
242242
if (NOT CMAKE_CXX_STANDARD)
243243
set (CMAKE_CXX_STANDARD 14)
244244
endif()
245245
if (CMAKE_CXX_STANDARD LESS 14)
246-
message(fatal "LLVM/CppInterOp requires c++14 or later")
246+
message(fatal "LLVM/CppInterOp requires C++14 or later")
247247
endif()
248248
endif()
249249

@@ -274,8 +274,6 @@ endif()
274274
# For consistency we should set it to the correct value.
275275
set(LLVM_CONFIG_HAS_RTTI NO CACHE BOOL "" FORCE)
276276

277-
## Init
278-
279277
# In case this was a path to a build folder of llvm still try to find AddLLVM
280278
list(APPEND CMAKE_MODULE_PATH "${LLVM_DIR}")
281279

@@ -383,7 +381,7 @@ include_directories(BEFORE SYSTEM
383381
${CMAKE_CURRENT_SOURCE_DIR}/include
384382
)
385383

386-
#Removes flag due to issue with Google test download when LLVM_ENABLE_WERROR=On
384+
# Removes flag due to issue with Google test download when LLVM_ENABLE_WERROR=On
387385
string(REPLACE "-Wcovered-switch-default" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
388386

389387
file(STRINGS "VERSION" CPPINTEROP_VERSION)

docs/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/conf.py
2828
create_sphinx_target(
2929
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}
3030
TARGET_NAME sphinx-cppinterop
31-
)
31+
)

docs/FAQ.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ languages, which can make your applications more powerful and flexible.
2121

2222
- Installation And Usage Guide-:doc:`Installation and usage <InstallationAndUsage>`
2323

24-
- Tutorials-:doc:`Tutorials <tutorials>`
24+
- Tutorials-:doc:`Tutorials <tutorials>`

docs/reference.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ https: //www.boost.org/doc/libs/1_65_1/libs/python/doc/html/reference/index.html
3636
https://bitbucket.org/wlav/cppyy/issues/369/template-instantiation-not-happening-in (Visited August 2021).
3737

3838
[14] Extend clang AST to provide information for the type as written in template instantiations,
39-
https://llvm.org/OpenProjects.html#clang-template-instantiation-sugar (Visited August 2021).
39+
https://llvm.org/OpenProjects.html#clang-template-instantiation-sugar (Visited August 2021).

docs/tutorials.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,4 +301,4 @@ be under the extern C for the compiler to know the C++ code within.
301301
302302
303303
The complete example can found below:
304-
`Example <https://github.com/compiler-research/pldi-tutorials-2023/blob/main/examples/p3-ex4/p3-ex4.c>`_.
304+
`Example <https://github.com/compiler-research/pldi-tutorials-2023/blob/main/examples/p3-ex4/p3-ex4.c>`_.

include/clang-c/CXCppInterOp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,4 @@ CINDEX_LINKAGE void clang_destruct(CXObject This, CXScope S, bool withFree);
370370
LLVM_CLANG_C_EXTERN_C_END
371371

372372
#endif // LLVM_CLANG_C_CXCPPINTEROP_H
373-
// NOLINTEND()
373+
// NOLINTEND()

lib/Interpreter/CXCppInterOp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -619,4 +619,4 @@ void Destruct(compat::Interpreter& interp, TCppObject_t This,
619619

620620
void clang_destruct(CXObject This, CXScope S, bool withFree) {
621621
Cpp::Destruct(*getInterpreter(S), This, getDecl(S), withFree);
622-
}
622+
}

lib/Interpreter/exports.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@
5050
-Wl,--export=_ZNK5clang4Type14isFloatingTypeEv
5151
-Wl,--export=_ZNK5clang12FunctionDecl12getNumParamsEv
5252
-Wl,--export=__clang_Interpreter_SetValueNoAlloc
53-
-Wl,--export=__clang_Interpreter_SetValueWithAlloc
53+
-Wl,--export=__clang_Interpreter_SetValueWithAlloc

unittests/CppInterOp/EnumReflectionTest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ TEST(EnumReflectionTest, GetEnums) {
357357
EXPECT_TRUE(std::find(enumNames2.begin(), enumNames2.end(), "Months") != enumNames2.end());
358358
EXPECT_TRUE(std::find(enumNames3.begin(), enumNames3.end(), "Color") != enumNames3.end());
359359
EXPECT_TRUE(enumNames4.empty());
360-
}
360+
}

unittests/CppInterOp/FunctionReflectionTest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1984,4 +1984,4 @@ TEST(FunctionReflectionTest, UndoTest) {
19841984
EXPECT_EQ(ret, 1);
19851985
#endif
19861986
#endif
1987-
}
1987+
}

unittests/CppInterOp/Utils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ void dispose_string(CXString string) {
7171

7272
CXScope make_scope(const clang::Decl* D, const CXInterpreter I) {
7373
return {CXCursor_UnexposedDecl, 0, {D, nullptr, I}};
74-
}
74+
}

unittests/CppInterOp/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
int main(int argc, char** argv) {
44
::testing::InitGoogleTest(&argc, argv);
55
return RUN_ALL_TESTS();
6-
}
6+
}

0 commit comments

Comments
 (0)