-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tool flag to set clang executable for cppast
- Loading branch information
1 parent
c7e633e
commit 1166caf
Showing
10 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PROJECT(TinyreflToolExample) | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
|
||
CONAN_BASIC_SETUP(TARGETS) | ||
|
||
message(STATUS "CONAN_BIN_DIRS_CLANG_EXECUTABLES: ${CONAN_BIN_DIRS_CLANG_EXECUTABLES}") | ||
|
||
add_library(tinyrefl_tool_example dummy.cpp) | ||
|
||
find_package(tinyrefl_tool REQUIRED) | ||
tinyrefl_tool(TARGET tinyrefl_tool_example HEADERS example.hpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from conans.model.conan_file import ConanFile | ||
from conans import CMake | ||
import os | ||
|
||
class DefaultNameConan(ConanFile): | ||
name = "DefaultName" | ||
version = "0.1" | ||
settings = "os", "compiler", "arch", "build_type" | ||
generators = "cmake" | ||
build_requires = 'tinyrefl-tool/0.3.1@Manu343726/testing' | ||
|
||
def build(self): | ||
cmake = CMake(self, parallel=False) | ||
cmake.verbose = True | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
pass |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#ifndef TINYREFL_TESTPACKAGE_EXAMPLE_HPP | ||
#define TINYREFL_TESTPACKAGE_EXAMPLE_HPP | ||
|
||
namespace example | ||
{ | ||
|
||
class Example | ||
{ | ||
public: | ||
Example() = default; | ||
|
||
int getInt() const | ||
{ | ||
return 42; | ||
} | ||
|
||
int i = 42; | ||
|
||
enum class Enum | ||
{ | ||
A, | ||
B, | ||
C | ||
}; | ||
|
||
Enum e = Enum::A; | ||
}; | ||
|
||
}; // namespace example | ||
|
||
#endif // TINYREFL_TESTPACKAGE_EXAMPLE_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters