Add .travis.yml
This commit is contained in:
parent
ce7d200a7c
commit
1420abc81b
14 changed files with 82 additions and 13 deletions
|
|
@ -96,6 +96,7 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_class(const detail::parse_context&
|
|||
#if CPPAST_CINDEX_HAS_FRIEND
|
||||
auto is_friend = clang_getCursorKind(parent_cur) == CXCursor_FriendDecl;
|
||||
#else
|
||||
(void)parent_cur;
|
||||
auto is_friend = false;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@
|
|||
#ifndef CPPAST_DEBUG_HELPER_HPP_INCLUDED
|
||||
#define CPPAST_DEBUG_HELPER_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "raii_wrapper.hpp"
|
||||
|
||||
namespace cppast
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ namespace
|
|||
for (auto i = 0; i != no; ++i)
|
||||
try
|
||||
{
|
||||
auto parameter = parse_parameter(context, clang_Cursor_getArgument(cur, i));
|
||||
auto parameter =
|
||||
parse_parameter(context, clang_Cursor_getArgument(cur, unsigned(i)));
|
||||
builder.add_parameter(std::move(parameter));
|
||||
}
|
||||
catch (detail::parse_error& ex)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_namespace_alias(const detail::pars
|
|||
auto result = cpp_namespace_alias::build(*context.idx, get_entity_id(cur), std::move(name),
|
||||
std::move(target));
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
||||
std::unique_ptr<cpp_entity> detail::parse_cpp_using_directive(const detail::parse_context& context,
|
||||
|
|
@ -121,7 +121,7 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_using_directive(const detail::pars
|
|||
auto target = cpp_namespace_ref(parse_ns_target_cursor(cur), std::move(target_name));
|
||||
auto result = cpp_using_directive::build(target);
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
||||
namespace
|
||||
|
|
@ -189,5 +189,5 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_using_declaration(
|
|||
auto target = cpp_entity_ref(parse_entity_target_cursor(cur), std::move(target_name));
|
||||
auto result = cpp_using_declaration::build(std::move(target));
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,5 +227,5 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_static_assert(const detail::parse_
|
|||
|
||||
auto result = cpp_static_assert::build(std::move(expr), std::move(msg));
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ namespace
|
|||
str.push_back(*ptr++);
|
||||
++ptr;
|
||||
|
||||
line = std::stoi(str);
|
||||
line = unsigned(std::stoi(str));
|
||||
}
|
||||
|
||||
DEBUG_ASSERT(*ptr == ':', detail::assert_handler{});
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
#ifndef CPPAST_TOKENIZER_HPP_INCLUDED
|
||||
#define CPPAST_TOKENIZER_HPP_INCLUDED
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "raii_wrapper.hpp"
|
||||
|
|
|
|||
|
|
@ -674,6 +674,6 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_type_alias(const detail::parse_con
|
|||
auto result =
|
||||
cpp_type_alias::build(*context.idx, get_entity_id(cur), name.c_str(), std::move(type));
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_variable(const detail::parse_conte
|
|||
result = cpp_variable::build_declaration(get_entity_id(cur), name.c_str(), std::move(type),
|
||||
storage_class, is_constexpr);
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
||||
std::unique_ptr<cpp_entity> detail::parse_cpp_member_variable(const detail::parse_context& context,
|
||||
|
|
@ -108,5 +108,5 @@ std::unique_ptr<cpp_entity> detail::parse_cpp_member_variable(const detail::pars
|
|||
std::move(type), std::move(default_value), is_mutable);
|
||||
}
|
||||
context.comments.match(*result, cur);
|
||||
return result;
|
||||
return std::move(result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue