Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Ubuntu 14.04 with GCC 4.8.5 #1031

Closed
6 tasks
Claudius42 opened this issue Aug 22, 2017 · 0 comments
Closed
6 tasks

Build failure on Ubuntu 14.04 with GCC 4.8.5 #1031

Claudius42 opened this issue Aug 22, 2017 · 0 comments

Comments

@Claudius42
Copy link

Please mark appropriate

  • [ x] rtags (rdm/rc/rp)
  • Emacs Lisp
    • ac-rtags.el
    • company-rtags.el
    • helm-rtags.el
    • flycheck-rtags.el
    • ivy-rtags.el
    • rtags.el

Problem description

I pulled the latest code today (2017-08-22) from git on Ubuntu 14.04, called cmake and then make. After calling make the compilation failed. The following log shows the output of cmake and some further lines below the output of make.

/opt/rtags/build$ cmake -DLUA_INCLUDE_DIR=/opt/lua-5.3.4/src -DLUA_LIBRARY=~/opt/lua-5.3.4/src/liblua.so ..
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- llvm-config executable found: /usr/bin/llvm-config
-- Using Clang version 4.0.1 from /usr/lib/llvm-4.0/lib with CXXFLAGS -I/usr/lib/llvm-4.0/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-- Found LibClang: /usr/lib/llvm-4.0/lib/libclang.so
-- Performing Test LIBCLANG_COMPILES
-- Performing Test LIBCLANG_COMPILES - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for CLOCK_MONOTONIC_RAW
-- Looking for CLOCK_MONOTONIC_RAW - found
-- Looking for CLOCK_MONOTONIC
-- Looking for CLOCK_MONOTONIC - found
-- Looking for mach_absolute_time
-- Looking for mach_absolute_time - not found
-- Looking for inotify_init
-- Looking for inotify_init - found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for epoll_wait
-- Looking for epoll_wait - found
-- Looking for select
-- Looking for select - found
-- Looking for FD_CLOEXEC
-- Looking for FD_CLOEXEC - found
-- Looking for SO_NOSIGPIPE
-- Looking for SO_NOSIGPIPE - not found
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for GetLogicalProcessorInformation
-- Looking for GetLogicalProcessorInformation - not found
-- Looking for SCHED_IDLE
-- Looking for SCHED_IDLE - found
-- Looking for SHM_DEST
-- Looking for SHM_DEST - found
-- Performing Test HAVE_STATMTIM
-- Performing Test HAVE_STATMTIM - Success
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.1f")
-- Performing Test HAVE_CXX11
-- Performing Test HAVE_CXX11 - Success
-- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR
-- Performing Test HAVE_UNORDERDED_MAP_WORKING_MOVE_CONSTRUCTOR - Success
-- Performing Test HAVE_STRING_ITERATOR_ERASE
-- Performing Test HAVE_STRING_ITERATOR_ERASE - Success
-- Emacs was not found, elisp files are not going to be installed!

-- The following OPTIONAL packages have been found:

-- The following REQUIRED packages have been found:

  • LibClang

-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

LUA_INCLUDE_DIR
LUA_LIBRARY

-- Build files have been written to: /home/cke/opt/rtags/build

~/opt/rtags/build$ make
Scanning dependencies of target rtags
[ 1%] Building CXX object src/CMakeFiles/rtags.dir/ClangIndexer.cpp.o
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/rct/rct/Log.h:13,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/Token.h:19,
from /home/cke/opt/rtags/src/ClangIndexer.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/String.h: In constructor ‘String::String(const char*, const char*)’:
/home/cke/opt/rtags/src/rct/rct/String.h:38:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘size_t String::indexOf(char, size_t, String::CaseSensitivity) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:106:21: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
const char data = mString.c_str();
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String String::trimmed(const String&) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:265:22: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const size_t end = mString.find_last_not_of(trim);
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String::iterator String::erase(String::const_iterator, String::const_iterator)’:
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘begin’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/rct/rct/Log.h:13,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/Token.h:19,
from /home/cke/opt/rtags/src/ClangIndexer.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long unsigned int String::toULongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:717:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long int String::toLongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:726:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘uint32_t String::toULong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:735:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘int32_t String::toLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:744:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
In file included from /home/cke/opt/rtags/src/Location.h:40:0,
from /home/cke/opt/rtags/src/Token.h:21,
from /home/cke/opt/rtags/src/ClangIndexer.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h: In member function ‘void StackBuffer<Size, T>::resize(size_t)’:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h:23:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/Symbol.h:29:0,
from /home/cke/opt/rtags/src/RTags.h:32,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/IndexDataMessage.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.h:22,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/Value.h: In member function ‘Value Value::convert(Value::Type, bool
) const’:
/home/cke/opt/rtags/src/rct/rct/Value.h:448:50: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
inline Value Value::convert(Type type, bool ok) const
^
In file included from /home/cke/opt/rtags/src/RTags.h:39:0,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/IndexDataMessage.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.h:22,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setProjectRoot(const Path&)’:
/home/cke/opt/rtags/src/IndexMessage.h:32:50: warning: declaration of ‘projectRoot’ shadows a member of 'this' [-Wshadow]
void setProjectRoot(const Path &projectRoot) { mProjectRoot = projectRoot; }
^
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setEnvironment(const List&)’:
/home/cke/opt/rtags/src/IndexMessage.h:35:58: warning: declaration of ‘environment’ shadows a member of 'this' [-Wshadow]
void setEnvironment(const List &environment) { mEnvironment = environment; }
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.h:22:0,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/IndexDataMessage.h: In member function ‘void IndexDataMessage::setIndexerJobFlags(FlagsIndexerJob::Flag)’:
/home/cke/opt/rtags/src/IndexDataMessage.h:82:60: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
void setIndexerJobFlags(FlagsIndexerJob::Flag flags) { mIndexerJobFlags = flags; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/SocketClient.h:6:0,
from /home/cke/opt/rtags/src/rct/rct/SocketServer.h:10,
from /home/cke/opt/rtags/src/Server.h:23,
from /home/cke/opt/rtags/src/ClangIndexer.h:27,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/Buffer.h: In member function ‘size_t Buffers::read(void
, size_t)’:
/home/cke/opt/rtags/src/rct/rct/Buffer.h:118:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/Buffer.h:123:16: warning: declaration of ‘read’ shadows a member of 'this' [-Wshadow]
size_t read = 0, remaining = size;
^
In file included from /home/cke/opt/rtags/src/rct/rct/SocketServer.h:10:0,
from /home/cke/opt/rtags/src/Server.h:23,
from /home/cke/opt/rtags/src/ClangIndexer.h:27,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::peerString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:64:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::sockString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:74:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘bool SocketClient::writeTo(const String&, uint16_t, const String&)’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:85:5: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:0:
/home/cke/opt/rtags/src/ClangIndexer.h: In member function ‘std::shared_ptrClangIndexer::Unit& ClangIndexer::unit(uint32_t)’:
/home/cke/opt/rtags/src/ClangIndexer.h:145:32: warning: declaration of ‘unit’ shadows a member of 'this' [-Wshadow]
std::shared_ptr &unit = mUnits[fileId];
^
In file included from /home/cke/opt/rtags/src/QueryMessage.h:21:0,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:26:
/home/cke/opt/rtags/src/Match.h: In constructor ‘Match::Match(const String&, FlagsMatch::Flag)’:
/home/cke/opt/rtags/src/Match.h:110:57: warning: declaration of ‘pattern’ shadows a member of 'this' [-Wshadow]
inline Match::Match(const String &pattern, Flags f)
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:26:0:
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setKindFilters(const QueryMessage::KindFilters&)’:
/home/cke/opt/rtags/src/QueryMessage.h:182:57: warning: declaration of ‘kindFilters’ shadows a member of 'this' [-Wshadow]
void setKindFilters(const KindFilters &kindFilters) { mKindFilters = kindFilters; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setUnsavedFiles(const UnsavedFiles&)’:
/home/cke/opt/rtags/src/QueryMessage.h:185:60: warning: declaration of ‘unsavedFiles’ shadows a member of 'this' [-Wshadow]
void setUnsavedFiles(const UnsavedFiles &unsavedFiles) { mUnsavedFiles = unsavedFiles; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setQuery(String&&)’:
/home/cke/opt/rtags/src/QueryMessage.h:193:35: warning: declaration of ‘query’ shadows a member of 'this' [-Wshadow]
void setQuery(String &&query) { mQuery = std::move(query); }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setRangeFilter(int, int)’:
/home/cke/opt/rtags/src/QueryMessage.h:203:5: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setMax(int)’:
/home/cke/opt/rtags/src/QueryMessage.h:212:26: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
void setMax(int max) { mMax = max; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setFlags(FlagsQueryMessage::Flag)’:
/home/cke/opt/rtags/src/QueryMessage.h:216:5: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setCurrentFile(const Path&)’:
/home/cke/opt/rtags/src/QueryMessage.h:240:50: warning: declaration of ‘currentFile’ shadows a member of 'this' [-Wshadow]
void setCurrentFile(const Path &currentFile) { mCurrentFile = currentFile; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:4:0,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:28:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h: In constructor ‘FinishMessage::FinishMessage(int)’:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h:12:9: warning: declaration of ‘status’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mStatus(status)
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:6:0,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:28:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const String&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(data), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const List&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(String::join(data, "\n")), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In member function ‘void ResponseMessage::setData(const String&)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:29:38: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
void setData(const String &data) { mData = data; }
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:28:0:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::setVersion(int)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:31:34: warning: declaration of ‘version’ shadows a member of 'this' [-Wshadow]
void setVersion(int version) { mVersion = version; }
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:28:0:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::onSocketError(const SharedPtr&, SocketClient::Error)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:91:5: warning: declaration of ‘error’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:33:0:
/home/cke/opt/rtags/src/VisitFileMessage.h: In constructor ‘VisitFileMessage::VisitFileMessage(const Path&, const Path&, uint32_t)’:
/home/cke/opt/rtags/src/VisitFileMessage.h:27:9: warning: declaration of ‘sourceFileId’ shadows a member of 'this' [-Wshadow]
: RTagsMessage(MessageId), mFile(file), mProject(project), mSourceFileId(sourceFileId)
^
/home/cke/opt/rtags/src/VisitFileMessage.h:27:9: warning: declaration of ‘project’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/VisitFileMessage.h:27:9: warning: declaration of ‘file’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/ClangIndexer.cpp:34:0:
/home/cke/opt/rtags/src/VisitFileResponseMessage.h: In constructor ‘VisitFileResponseMessage::VisitFileResponseMessage(uint32_t, bool)’:
/home/cke/opt/rtags/src/VisitFileResponseMessage.h:27:9: warning: declaration of ‘visit’ shadows a member of 'this' [-Wshadow]
: RTagsMessage(MessageId), mFileId(fileId), mVisit(visit)
^
/home/cke/opt/rtags/src/VisitFileResponseMessage.h:27:9: warning: declaration of ‘fileId’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/ClangIndexer.cpp: In member function ‘bool ClangIndexer::exec(const String&)’:
/home/cke/opt/rtags/src/ClangIndexer.cpp:239:22: warning: declaration of ‘unit’ shadows a member of 'this' [-Wshadow]
for (const auto &unit : mUnits) {
^
/home/cke/opt/rtags/src/ClangIndexer.cpp: In member function ‘bool ClangIndexer::parse()’:
/home/cke/opt/rtags/src/ClangIndexer.cpp:1890:14: warning: declaration of ‘unit’ shadows a member of 'this' [-Wshadow]
auto unit = RTags::TranslationUnit::create(mSourceFile, args, &unsavedFiles[0], unsavedIndex, flags);
^
/home/cke/opt/rtags/src/ClangIndexer.cpp: In member function ‘bool ClangIndexer::visit()’:
/home/cke/opt/rtags/src/ClangIndexer.cpp:2357:21: warning: declaration of ‘unit’ shadows a member of 'this' [-Wshadow]
const auto &unit = mTranslationUnits.at(mCurrentTranslationUnit);
^
In file included from /home/cke/opt/rtags/src/rct/rct/Hash.h:7:0,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:12,
from /home/cke/opt/rtags/src/Token.h:19,
from /home/cke/opt/rtags/src/ClangIndexer.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/List.h: In instantiation of ‘size_t List::indexOf(const T&) const [with T = String; size_t = long unsigned int]’:
/home/cke/opt/rtags/src/ClangIndexer.cpp:1657:80: required from here
/home/cke/opt/rtags/src/rct/rct/List.h:116:61: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const typename Base::const_iterator end = Base::end();
^
In file included from /home/cke/opt/rtags/src/rct/rct/Log.h:16:0,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/Token.h:19,
from /home/cke/opt/rtags/src/ClangIndexer.h:20,
from /home/cke/opt/rtags/src/ClangIndexer.cpp:17:
/home/cke/opt/rtags/src/rct/rct/Map.h: In instantiation of ‘Map<Key, Value, Compare>& Map<Key, Value, Compare>::unite(const Map<Key, Value, Compare>&, size_t*) [with Key = Location; Value = Map<String, short unsigned int>; Compare = std::less; size_t = long unsigned int]’:
/home/cke/opt/rtags/src/ClangIndexer.cpp:2057:51: required from here
/home/cke/opt/rtags/src/rct/rct/Map.h:129:31: warning: declaration of ‘count’ shadows a member of 'this' [-Wshadow]
Map<Key, Value, Compare> &unite(const Map<Key, Value, Compare> &other, size_t count = 0)
^
/home/cke/opt/rtags/src/rct/rct/Map.h:132:36: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const auto end = other.end();
^
[ 2%] Building CXX object src/CMakeFiles/rtags.dir/ClangThread.cpp.o
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/rct/rct/Log.h:13,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/Diagnostic.h:19,
from /home/cke/opt/rtags/src/Project.h:22,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In constructor ‘String::String(const char
, const char*)’:
/home/cke/opt/rtags/src/rct/rct/String.h:38:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘size_t String::indexOf(char, size_t, String::CaseSensitivity) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:106:21: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
const char data = mString.c_str();
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String String::trimmed(const String&) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:265:22: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const size_t end = mString.find_last_not_of(trim);
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String::iterator String::erase(String::const_iterator, String::const_iterator)’:
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘begin’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/rct/rct/Log.h:13,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/Diagnostic.h:19,
from /home/cke/opt/rtags/src/Project.h:22,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long unsigned int String::toULongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:717:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long int String::toLongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:726:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘uint32_t String::toULong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:735:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘int32_t String::toLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:744:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
In file included from /home/cke/opt/rtags/src/Location.h:40:0,
from /home/cke/opt/rtags/src/Diagnostic.h:21,
from /home/cke/opt/rtags/src/Project.h:22,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h: In member function ‘void StackBuffer<Size, T>::resize(size_t)’:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h:23:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/Symbol.h:29:0,
from /home/cke/opt/rtags/src/RTags.h:32,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/Project.h:24,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Value.h: In member function ‘Value Value::convert(Value::Type, bool
) const’:
/home/cke/opt/rtags/src/rct/rct/Value.h:448:50: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
inline Value Value::convert(Type type, bool ok) const
^
In file included from /home/cke/opt/rtags/src/RTags.h:39:0,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/Project.h:24,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setProjectRoot(const Path&)’:
/home/cke/opt/rtags/src/IndexMessage.h:32:50: warning: declaration of ‘projectRoot’ shadows a member of 'this' [-Wshadow]
void setProjectRoot(const Path &projectRoot) { mProjectRoot = projectRoot; }
^
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setEnvironment(const List&)’:
/home/cke/opt/rtags/src/IndexMessage.h:35:58: warning: declaration of ‘environment’ shadows a member of 'this' [-Wshadow]
void setEnvironment(const List &environment) { mEnvironment = environment; }
^
In file included from /home/cke/opt/rtags/src/QueryMessage.h:21:0,
from /home/cke/opt/rtags/src/Project.h:26,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/Match.h: In constructor ‘Match::Match(const String&, FlagsMatch::Flag)’:
/home/cke/opt/rtags/src/Match.h:110:57: warning: declaration of ‘pattern’ shadows a member of 'this' [-Wshadow]
inline Match::Match(const String &pattern, Flags f)
^
In file included from /home/cke/opt/rtags/src/Project.h:26:0,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setKindFilters(const QueryMessage::KindFilters&)’:
/home/cke/opt/rtags/src/QueryMessage.h:182:57: warning: declaration of ‘kindFilters’ shadows a member of 'this' [-Wshadow]
void setKindFilters(const KindFilters &kindFilters) { mKindFilters = kindFilters; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setUnsavedFiles(const UnsavedFiles&)’:
/home/cke/opt/rtags/src/QueryMessage.h:185:60: warning: declaration of ‘unsavedFiles’ shadows a member of 'this' [-Wshadow]
void setUnsavedFiles(const UnsavedFiles &unsavedFiles) { mUnsavedFiles = unsavedFiles; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setQuery(String&&)’:
/home/cke/opt/rtags/src/QueryMessage.h:193:35: warning: declaration of ‘query’ shadows a member of 'this' [-Wshadow]
void setQuery(String &&query) { mQuery = std::move(query); }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setRangeFilter(int, int)’:
/home/cke/opt/rtags/src/QueryMessage.h:203:5: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setMax(int)’:
/home/cke/opt/rtags/src/QueryMessage.h:212:26: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
void setMax(int max) { mMax = max; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setFlags(FlagsQueryMessage::Flag)’:
/home/cke/opt/rtags/src/QueryMessage.h:216:5: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setCurrentFile(const Path&)’:
/home/cke/opt/rtags/src/QueryMessage.h:240:50: warning: declaration of ‘currentFile’ shadows a member of 'this' [-Wshadow]
void setCurrentFile(const Path &currentFile) { mCurrentFile = currentFile; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:4:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h: In constructor ‘FinishMessage::FinishMessage(int)’:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h:12:9: warning: declaration of ‘status’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mStatus(status)
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:5:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Buffer.h: In member function ‘size_t Buffers::read(void
, size_t)’:
/home/cke/opt/rtags/src/rct/rct/Buffer.h:118:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/Buffer.h:123:16: warning: declaration of ‘read’ shadows a member of 'this' [-Wshadow]
size_t read = 0, remaining = size;
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:6:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const String&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(data), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const List&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(String::join(data, "\n")), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In member function ‘void ResponseMessage::setData(const String&)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:29:38: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
void setData(const String &data) { mData = data; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:8:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::peerString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:64:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::sockString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:74:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘bool SocketClient::writeTo(const String&, uint16_t, const String&)’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:85:5: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/IndexParseData.h:25:0,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::setVersion(int)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:31:34: warning: declaration of ‘version’ shadows a member of 'this' [-Wshadow]
void setVersion(int version) { mVersion = version; }
^
In file included from /home/cke/opt/rtags/src/IndexParseData.h:25:0,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/ClangThread.h:21,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::onSocketError(const SharedPtr&, SocketClient::Error)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:91:5: warning: declaration of ‘error’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/ClangThread.h:21:0,
from /home/cke/opt/rtags/src/ClangThread.cpp:16:
/home/cke/opt/rtags/src/Project.h: In member function ‘bool Project::visitFile(uint32_t, const Path&, uint32_t)’:
/home/cke/opt/rtags/src/Project.h:441:83: warning: declaration of ‘path’ shadows a member of 'this' [-Wshadow]
inline bool Project::visitFile(uint32_t visitFileId, const Path &path, uint32_t id)
^
[ 4%] Building CXX object src/CMakeFiles/rtags.dir/ClassHierarchyJob.cpp.o
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/Location.h:35,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:19,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In constructor ‘String::String(const char*, const char*)’:
/home/cke/opt/rtags/src/rct/rct/String.h:38:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘size_t String::indexOf(char, size_t, String::CaseSensitivity) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:106:21: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
const char data = mString.c_str();
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String String::trimmed(const String&) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:265:22: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const size_t end = mString.find_last_not_of(trim);
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String::iterator String::erase(String::const_iterator, String::const_iterator)’:
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘begin’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/Location.h:35,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:19,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long unsigned int String::toULongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:717:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long int String::toLongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:726:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘uint32_t String::toULong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:735:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘int32_t String::toLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:744:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
In file included from /home/cke/opt/rtags/src/Location.h:40:0,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:19,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h: In member function ‘void StackBuffer<Size, T>::resize(size_t)’:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h:23:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/Symbol.h:29:0,
from /home/cke/opt/rtags/src/RTags.h:32,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/Project.h:24,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Value.h: In member function ‘Value Value::convert(Value::Type, bool
) const’:
/home/cke/opt/rtags/src/rct/rct/Value.h:448:50: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
inline Value Value::convert(Type type, bool ok) const
^
In file included from /home/cke/opt/rtags/src/RTags.h:39:0,
from /home/cke/opt/rtags/src/IndexerJob.h:21,
from /home/cke/opt/rtags/src/Project.h:24,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setProjectRoot(const Path&)’:
/home/cke/opt/rtags/src/IndexMessage.h:32:50: warning: declaration of ‘projectRoot’ shadows a member of 'this' [-Wshadow]
void setProjectRoot(const Path &projectRoot) { mProjectRoot = projectRoot; }
^
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setEnvironment(const List&)’:
/home/cke/opt/rtags/src/IndexMessage.h:35:58: warning: declaration of ‘environment’ shadows a member of 'this' [-Wshadow]
void setEnvironment(const List &environment) { mEnvironment = environment; }
^
In file included from /home/cke/opt/rtags/src/QueryMessage.h:21:0,
from /home/cke/opt/rtags/src/Project.h:26,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/Match.h: In constructor ‘Match::Match(const String&, FlagsMatch::Flag)’:
/home/cke/opt/rtags/src/Match.h:110:57: warning: declaration of ‘pattern’ shadows a member of 'this' [-Wshadow]
inline Match::Match(const String &pattern, Flags f)
^
In file included from /home/cke/opt/rtags/src/Project.h:26:0,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setKindFilters(const QueryMessage::KindFilters&)’:
/home/cke/opt/rtags/src/QueryMessage.h:182:57: warning: declaration of ‘kindFilters’ shadows a member of 'this' [-Wshadow]
void setKindFilters(const KindFilters &kindFilters) { mKindFilters = kindFilters; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setUnsavedFiles(const UnsavedFiles&)’:
/home/cke/opt/rtags/src/QueryMessage.h:185:60: warning: declaration of ‘unsavedFiles’ shadows a member of 'this' [-Wshadow]
void setUnsavedFiles(const UnsavedFiles &unsavedFiles) { mUnsavedFiles = unsavedFiles; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setQuery(String&&)’:
/home/cke/opt/rtags/src/QueryMessage.h:193:35: warning: declaration of ‘query’ shadows a member of 'this' [-Wshadow]
void setQuery(String &&query) { mQuery = std::move(query); }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setRangeFilter(int, int)’:
/home/cke/opt/rtags/src/QueryMessage.h:203:5: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setMax(int)’:
/home/cke/opt/rtags/src/QueryMessage.h:212:26: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
void setMax(int max) { mMax = max; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setFlags(FlagsQueryMessage::Flag)’:
/home/cke/opt/rtags/src/QueryMessage.h:216:5: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setCurrentFile(const Path&)’:
/home/cke/opt/rtags/src/QueryMessage.h:240:50: warning: declaration of ‘currentFile’ shadows a member of 'this' [-Wshadow]
void setCurrentFile(const Path &currentFile) { mCurrentFile = currentFile; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:4:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h: In constructor ‘FinishMessage::FinishMessage(int)’:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h:12:9: warning: declaration of ‘status’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mStatus(status)
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:5:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Buffer.h: In member function ‘size_t Buffers::read(void
, size_t)’:
/home/cke/opt/rtags/src/rct/rct/Buffer.h:118:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/Buffer.h:123:16: warning: declaration of ‘read’ shadows a member of 'this' [-Wshadow]
size_t read = 0, remaining = size;
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:6:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const String&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(data), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const List&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(String::join(data, "\n")), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In member function ‘void ResponseMessage::setData(const String&)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:29:38: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
void setData(const String &data) { mData = data; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:8:0,
from /home/cke/opt/rtags/src/IndexParseData.h:25,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::peerString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:64:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::sockString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:74:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘bool SocketClient::writeTo(const String&, uint16_t, const String&)’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:85:5: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/IndexParseData.h:25:0,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::setVersion(int)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:31:34: warning: declaration of ‘version’ shadows a member of 'this' [-Wshadow]
void setVersion(int version) { mVersion = version; }
^
In file included from /home/cke/opt/rtags/src/IndexParseData.h:25:0,
from /home/cke/opt/rtags/src/Project.h:27,
from /home/cke/opt/rtags/src/QueryJob.h:22,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::onSocketError(const SharedPtr&, SocketClient::Error)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:91:5: warning: declaration of ‘error’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/QueryJob.h:22:0,
from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/Project.h: In member function ‘bool Project::visitFile(uint32_t, const Path&, uint32_t)’:
/home/cke/opt/rtags/src/Project.h:441:83: warning: declaration of ‘path’ shadows a member of 'this' [-Wshadow]
inline bool Project::visitFile(uint32_t visitFileId, const Path &path, uint32_t id)
^
In file included from /home/cke/opt/rtags/src/ClassHierarchyJob.h:20:0,
from /home/cke/opt/rtags/src/ClassHierarchyJob.cpp:16:
/home/cke/opt/rtags/src/QueryJob.h: In member function ‘void QueryJob::setPieceFilters(Set&&)’:
/home/cke/opt/rtags/src/QueryJob.h:58:54: warning: declaration of ‘pieceFilters’ shadows a member of 'this' [-Wshadow]
void setPieceFilters(Set &&pieceFilters) { mPieceFilters = std::move(pieceFilters); }
^
/home/cke/opt/rtags/src/ClassHierarchyJob.cpp: In constructor ‘ClassHierarchyJob::ClassHierarchyJob(Location, const std::shared_ptr&, const std::shared_ptr&)’:
/home/cke/opt/rtags/src/ClassHierarchyJob.cpp:24:77: warning: declaration of ‘project’ shadows a member of 'this' [-Wshadow]
const std::shared_ptr &project)
^
[ 5%] Building CXX object src/CMakeFiles/rtags.dir/CompilerManager.cpp.o
In file included from /home/cke/opt/rtags/src/rct/rct/Path.h:16:0,
from /home/cke/opt/rtags/src/CompilerManager.h:20,
from /home/cke/opt/rtags/src/CompilerManager.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In constructor ‘String::String(const char*, const char*)’:
/home/cke/opt/rtags/src/rct/rct/String.h:38:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘size_t String::indexOf(char, size_t, String::CaseSensitivity) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:106:21: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
const char data = mString.c_str();
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String String::trimmed(const String&) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:265:22: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const size_t end = mString.find_last_not_of(trim);
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String::iterator String::erase(String::const_iterator, String::const_iterator)’:
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘begin’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/rct/rct/Path.h:16:0,
from /home/cke/opt/rtags/src/CompilerManager.h:20,
from /home/cke/opt/rtags/src/CompilerManager.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long unsigned int String::toULongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:717:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long int String::toLongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:726:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘uint32_t String::toULong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:735:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘int32_t String::toLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:744:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
In file included from /home/cke/opt/rtags/src/Location.h:40:0,
from /home/cke/opt/rtags/src/Source.h:21,
from /home/cke/opt/rtags/src/CompilerManager.cpp:20:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h: In member function ‘void StackBuffer<Size, T>::resize(size_t)’:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h:23:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/rct/rct/Log.h:18:0,
from /home/cke/opt/rtags/src/rct/rct/Serializer.h:14,
from /home/cke/opt/rtags/src/CompilerManager.h:21,
from /home/cke/opt/rtags/src/CompilerManager.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Set.h: In instantiation of ‘Set& Set::unite(const Set&, size_t
) [with T = Source::Define; size_t = long unsigned int]’:
/home/cke/opt/rtags/src/rct/rct/Set.h:178:23: required from ‘Set& Set::operator<<(const Set&) [with T = Source::Define]’
/home/cke/opt/rtags/src/CompilerManager.cpp:180:36: required from here
/home/cke/opt/rtags/src/rct/rct/Set.h:77:13: warning: declaration of ‘count’ shadows a member of 'this' [-Wshadow]
Set &unite(const Set &other, size_t count = 0)
^
[ 7%] Building CXX object src/CMakeFiles/rtags.dir/CompletionThread.cpp.o
In file included from /home/cke/opt/rtags/src/CompletionThread.cpp:27:0:
/home/cke/opt/rtags/src/rct/json/json.hpp:67:10: error: #error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
#error "unsupported GCC version - see https://github.com/nlohmann/json#supported-compilers"
^
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/Location.h:35,
from /home/cke/opt/rtags/src/CompletionThread.h:24,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In constructor ‘String::String(const char
, const char*)’:
/home/cke/opt/rtags/src/rct/rct/String.h:38:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘size_t String::indexOf(char, size_t, String::CaseSensitivity) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:106:21: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
const char data = mString.c_str();
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String String::trimmed(const String&) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:265:22: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
const size_t end = mString.find_last_not_of(trim);
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘String::iterator String::erase(String::const_iterator, String::const_iterator)’:
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/String.h:456:5: warning: declaration of ‘begin’ shadows a member of 'this' [-Wshadow]
In file included from /home/cke/opt/rtags/src/rct/rct/Flags.h:4:0,
from /home/cke/opt/rtags/src/Location.h:35,
from /home/cke/opt/rtags/src/CompletionThread.h:24,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long unsigned int String::toULongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:717:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘long long int String::toLongLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:726:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘uint32_t String::toULong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:735:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
/home/cke/opt/rtags/src/rct/rct/String.h: In member function ‘int32_t String::toLong(bool
, size_t) const’:
/home/cke/opt/rtags/src/rct/rct/String.h:744:15: warning: declaration of ‘end’ shadows a member of 'this' [-Wshadow]
char end = 0;
^
In file included from /home/cke/opt/rtags/src/Location.h:40:0,
from /home/cke/opt/rtags/src/CompletionThread.h:24,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h: In member function ‘void StackBuffer<Size, T>::resize(size_t)’:
/home/cke/opt/rtags/src/rct/rct/StackBuffer.h:23:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:4:0,
from /home/cke/opt/rtags/src/CompletionThread.h:25,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h: In constructor ‘FinishMessage::FinishMessage(int)’:
/home/cke/opt/rtags/src/rct/rct/FinishMessage.h:12:9: warning: declaration of ‘status’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mStatus(status)
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:5:0,
from /home/cke/opt/rtags/src/CompletionThread.h:25,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Buffer.h: In member function ‘size_t Buffers::read(void
, size_t)’:
/home/cke/opt/rtags/src/rct/rct/Buffer.h:118:5: warning: declaration of ‘size’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/rct/rct/Buffer.h:123:16: warning: declaration of ‘read’ shadows a member of 'this' [-Wshadow]
size_t read = 0, remaining = size;
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:6:0,
from /home/cke/opt/rtags/src/CompletionThread.h:25,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const String&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(data), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:14:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In constructor ‘ResponseMessage::ResponseMessage(const List&, ResponseMessage::Type)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
: Message(MessageId), mData(String::join(data, "\n")), mType(type)
^
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:20:9: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h: In member function ‘void ResponseMessage::setData(const String&)’:
/home/cke/opt/rtags/src/rct/rct/ResponseMessage.h:29:38: warning: declaration of ‘data’ shadows a member of 'this' [-Wshadow]
void setData(const String &data) { mData = data; }
^
In file included from /home/cke/opt/rtags/src/rct/rct/Connection.h:8:0,
from /home/cke/opt/rtags/src/CompletionThread.h:25,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::peerString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:64:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘String SocketClient::sockString() const’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:74:18: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
uint16_t port;
^
/home/cke/opt/rtags/src/rct/rct/SocketClient.h: In member function ‘bool SocketClient::writeTo(const String&, uint16_t, const String&)’:
/home/cke/opt/rtags/src/rct/rct/SocketClient.h:85:5: warning: declaration of ‘port’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/CompletionThread.h:25:0,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::setVersion(int)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:31:34: warning: declaration of ‘version’ shadows a member of 'this' [-Wshadow]
void setVersion(int version) { mVersion = version; }
^
In file included from /home/cke/opt/rtags/src/CompletionThread.h:25:0,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Connection.h: In member function ‘void Connection::onSocketError(const SharedPtr&, SocketClient::Error)’:
/home/cke/opt/rtags/src/rct/rct/Connection.h:91:5: warning: declaration of ‘error’ shadows a member of 'this' [-Wshadow]
{
^
In file included from /home/cke/opt/rtags/src/Symbol.h:29:0,
from /home/cke/opt/rtags/src/RTags.h:32,
from /home/cke/opt/rtags/src/CompletionThread.h:32,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Value.h: In member function ‘Value Value::convert(Value::Type, bool*) const’:
/home/cke/opt/rtags/src/rct/rct/Value.h:448:50: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
inline Value Value::convert(Type type, bool ok) const
^
In file included from /home/cke/opt/rtags/src/RTags.h:39:0,
from /home/cke/opt/rtags/src/CompletionThread.h:32,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setProjectRoot(const Path&)’:
/home/cke/opt/rtags/src/IndexMessage.h:32:50: warning: declaration of ‘projectRoot’ shadows a member of 'this' [-Wshadow]
void setProjectRoot(const Path &projectRoot) { mProjectRoot = projectRoot; }
^
/home/cke/opt/rtags/src/IndexMessage.h: In member function ‘void IndexMessage::setEnvironment(const List&)’:
/home/cke/opt/rtags/src/IndexMessage.h:35:58: warning: declaration of ‘environment’ shadows a member of 'this' [-Wshadow]
void setEnvironment(const List &environment) { mEnvironment = environment; }
^
In file included from /home/cke/opt/rtags/src/QueryMessage.h:21:0,
from /home/cke/opt/rtags/src/Project.h:26,
from /home/cke/opt/rtags/src/CompletionThread.cpp:17:
/home/cke/opt/rtags/src/Match.h: In constructor ‘Match::Match(const String&, FlagsMatch::Flag)’:
/home/cke/opt/rtags/src/Match.h:110:57: warning: declaration of ‘pattern’ shadows a member of 'this' [-Wshadow]
inline Match::Match(const String &pattern, Flags f)
^
In file included from /home/cke/opt/rtags/src/Project.h:26:0,
from /home/cke/opt/rtags/src/CompletionThread.cpp:17:
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setKindFilters(const QueryMessage::KindFilters&)’:
/home/cke/opt/rtags/src/QueryMessage.h:182:57: warning: declaration of ‘kindFilters’ shadows a member of 'this' [-Wshadow]
void setKindFilters(const KindFilters &kindFilters) { mKindFilters = kindFilters; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setUnsavedFiles(const UnsavedFiles&)’:
/home/cke/opt/rtags/src/QueryMessage.h:185:60: warning: declaration of ‘unsavedFiles’ shadows a member of 'this' [-Wshadow]
void setUnsavedFiles(const UnsavedFiles &unsavedFiles) { mUnsavedFiles = unsavedFiles; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setQuery(String&&)’:
/home/cke/opt/rtags/src/QueryMessage.h:193:35: warning: declaration of ‘query’ shadows a member of 'this' [-Wshadow]
void setQuery(String &&query) { mQuery = std::move(query); }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setRangeFilter(int, int)’:
/home/cke/opt/rtags/src/QueryMessage.h:203:5: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setMax(int)’:
/home/cke/opt/rtags/src/QueryMessage.h:212:26: warning: declaration of ‘max’ shadows a member of 'this' [-Wshadow]
void setMax(int max) { mMax = max; }
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setFlags(FlagsQueryMessage::Flag)’:
/home/cke/opt/rtags/src/QueryMessage.h:216:5: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
{
^
/home/cke/opt/rtags/src/QueryMessage.h: In member function ‘void QueryMessage::setCurrentFile(const Path&)’:
/home/cke/opt/rtags/src/QueryMessage.h:240:50: warning: declaration of ‘currentFile’ shadows a member of 'this' [-Wshadow]
void setCurrentFile(const Path &currentFile) { mCurrentFile = currentFile; }
^
In file included from /home/cke/opt/rtags/src/CompletionThread.cpp:17:0:
/home/cke/opt/rtags/src/Project.h: In member function ‘bool Project::visitFile(uint32_t, const Path&, uint32_t)’:
/home/cke/opt/rtags/src/Project.h:441:83: warning: declaration of ‘path’ shadows a member of 'this' [-Wshadow]
inline bool Project::visitFile(uint32_t visitFileId, const Path &path, uint32_t id)
^
In file included from /home/cke/opt/rtags/src/CompletionThread.cpp:21:0:
/home/cke/opt/rtags/src/RTagsLogOutput.h: In constructor ‘RTagsLogOutput::RTagsLogOutput(LogLevel, unsigned int, const std::shared_ptr&)’:
/home/cke/opt/rtags/src/RTagsLogOutput.h:34:9: warning: declaration of ‘flags’ shadows a member of 'this' [-Wshadow]
: LogOutput(level), mFlags(flags), mConnection(conn)
^
/home/cke/opt/rtags/src/CompletionThread.cpp: In member function ‘virtual void CompletionThread::run()’:
/home/cke/opt/rtags/src/CompletionThread.cpp:51:15: warning: declaration of ‘dump’ shadows a member of 'this' [-Wshadow]
Dump dump = 0;
^
/home/cke/opt/rtags/src/CompletionThread.cpp: In member function ‘String CompletionThread::dump()’:
/home/cke/opt/rtags/src/CompletionThread.cpp:141:10: warning: declaration of ‘dump’ shadows a member of 'this' [-Wshadow]
Dump dump;
^
In file included from /home/cke/opt/rtags/src/CompletionThread.cpp:27:0:
/home/cke/opt/rtags/src/rct/json/json.hpp: In instantiation of ‘static std::vector<std::basic_string > nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::json_pointer::split(const string&) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; std::string = std::basic_string]’:
/home/cke/opt/rtags/src/rct/json/json.hpp:11675:39: required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::json_pointer::json_pointer(const string&) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; std::string = std::basic_string]’
/home/cke/opt/rtags/src/rct/json/json.hpp:12989:58: required from here
/home/cke/opt/rtags/src/rct/json/json.hpp:12052:25: warning: declaration of ‘start’ shadows a global declaration [-Wshadow]
start = 1;
^
/home/cke/opt/rtags/src/CompletionThread.cpp:31:17: warning: shadowed declaration is here [-Wshadow]
static uint64_t start = 0;
^
In file included from /home/cke/opt/rtags/src/rct/rct/Log.h:18:0,
from /home/cke/opt/rtags/src/Location.h:36,
from /home/cke/opt/rtags/src/CompletionThread.h:24,
from /home/cke/opt/rtags/src/CompletionThread.cpp:16:
/home/cke/opt/rtags/src/rct/rct/Set.h: In instantiation of ‘Set& Set::unite(const List&, size_t
) [with T = Source::Define; size_t = long unsigned int]’:
/home/cke/opt/rtags/src/rct/rct/Set.h:173:23: required from ‘Set& Set::operator<<(const List&) [with T = Source::Define]’
/home/cke/opt/rtags/src/CompletionThread.cpp:253:44: required from here
/home/cke/opt/rtags/src/rct/rct/Set.h:121:13: warning: declaration of ‘count’ shadows a member of 'this' [-Wshadow]
Set &unite(const List &other, size_t count = 0)
^
In file included from /home/cke/opt/rtags/src/CompletionThread.cpp:27:0:
/home/cke/opt/rtags/src/rct/json/json.hpp: In instantiation of ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::lexer::strtonum::strtonum(const char
, const char
) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’:
/home/cke/opt/rtags/src/rct/json/json.hpp:11268:75: required from ‘bool nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::lexer::get_number(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>&, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::lexer::token_type) const [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
/home/cke/opt/rtags/src/rct/json/json.hpp:11572:21: required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::parser::parse_internal(bool) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
/home/cke/opt/rtags/src/rct/json/json.hpp:11384:52: required from ‘nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::parser::parse() [with ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer]’
/home/cke/opt/rtags/src/rct/json/json.hpp:6432:37: required from ‘static nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer> nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::parse(IteratorType, IteratorType, nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::parser_callback_t) [with IteratorType = const char*; typename std::enable_if<std::is_base_of<std::random_access_iterator_tag, typename std::iterator_traits<_II1>::iterator_category>::value, int>::type = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::basic_string; BooleanType = bool; NumberIntegerType = long int; NumberUnsignedType = long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer>::parser_callback_t = std::function<bool(int, nlohmann::basic_json<>::parse_event_t, nlohmann::basic_json<>&)>]’
/home/cke/opt/rtags/src/rct/json/json.hpp:12971:42: required from here
/home/cke/opt/rtags/src/rct/json/json.hpp:11103:13: warning: declaration of ‘start’ shadows a global declaration [-Wshadow]
strtonum(const char* start, const char* end)
^
/home/cke/opt/rtags/src/CompletionThread.cpp:31:17: warning: shadowed declaration is here [-Wshadow]
static uint64_t start = 0;
^
make[2]: *** [src/CMakeFiles/rtags.dir/CompletionThread.cpp.o] Fehler 1
make[1]: *** [src/CMakeFiles/rtags.dir/all] Fehler 2
make: *** [all] Fehler 2
~/opt/rtags/build$
~/opt/rtags/build$
~/opt/rtags/build$
~/opt/rtags/build$ cmake --version
cmake version 2.8.12.2

Expected behavior

Compilation Successful

Actual behavior

Compilation failed

Environment

  • Your operating system: Ubuntu 14.04 64-bit

  • LLVM/Clang version: 4.0.1

Feature request

Describe the feature we should add to RTags.

Andersbakken added a commit that referenced this issue Aug 22, 2017
@casch-at casch-at closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants