Displaying 16 results from an estimated 16 matches for "basic_parser".
2019 Apr 18
2
[CommandLine] Unable to implement a custom parser -- all marked final
Hi David:
I'd actually like to use a custom parser in a tool I'm developing, parsing
YAML files. The partial fix for my purposes was:
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -1044,7 +1044,7 @@ extern template class basic_parser<float>;
//--------------------------------------------------
// parser<std::string>
//
-template <> class parser<std::string> final : public
basic_parser<std::string> {
+template <> class parser<std::string> : public basic_parser<std::string> {
pu...
2011 Nov 29
2
[LLVMdev] anchoring explicit template instantiations
...attached patch -
if it looks good to anyone I'll check that in) but a particular set of
them have been a little more problematic.
If you take a look at CommandLine.h/CommandLine.cpp you'll see some
code that basically amounts to this:
header:
template<class DataType>
class basic_parser {
virtual ~basic_parser() {}
};
__extension__ extern template class basic_parser<bool>;
implementation:
template class basic_parser<bool>;
(both lines are wrapped in a macro (Compiler.h:77-88) & are no-ops in
non-GNUC compilers (where the __extension__ extern i...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
...;t know about explicit instantiations though, maybe a C++ guru on the clang list knows.
-Chris
>
> If you take a look at CommandLine.h/CommandLine.cpp you'll see some
> code that basically amounts to this:
>
> header:
>
> template<class DataType>
> class basic_parser {
> virtual ~basic_parser() {}
> };
>
> __extension__ extern template class basic_parser<bool>;
>
> implementation:
>
> template class basic_parser<bool>;
>
> (both lines are wrapped in a macro (Compiler.h:77-88) & are no-ops in
> n...
2016 Mar 25
2
Link error on Linux
...m.h:141: undefined reference to
`llvm::raw_ostream::write(unsigned char)'
aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
llvm::cl::parser<std::string> >::getOptionWidth() const':
/home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined reference
to `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&)
const'
aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
/home/a/llvm/include/llvm/Support/CommandLine.h:1390: undefined reference
to `llvm::cl::ba...
2016 Mar 25
3
Link error on Linux
...tream::write(unsigned char)'
> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> > llvm::cl::parser<std::string> >::getOptionWidth() const':
> > /home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined
> reference to
> > `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&)
> const'
> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> > llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
> > /home/a/llvm/include/llvm/Support/CommandLine.h:1390: u...
2016 Mar 25
0
Link error on Linux
...nce to
> `llvm::raw_ostream::write(unsigned char)'
> aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> llvm::cl::parser<std::string> >::getOptionWidth() const':
> /home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined reference to
> `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&) const'
> aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
> /home/a/llvm/include/llvm/Support/CommandLine.h:1390: undefined reference t...
2019 Apr 18
2
[CommandLine] Unable to implement a custom parser -- all marked final
https://llvm.org/docs/CommandLine.html#writing-a-custom-parser describes
how to implement a custom parser, but they're all marked `final`, so I
can't inherit.
Is there a reason for this? If not, I'll submit patch with tests.
thanks...
don
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 Mar 25
2
Link error on Linux
...d char)'
>> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
>> > llvm::cl::parser<std::string> >::getOptionWidth() const':
>> > /home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined
>> reference to
>> > `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&)
>> const'
>> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
>> > llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
>> > /home/a/llvm/include/llvm/Support/Comma...
2016 Mar 25
0
Link error on Linux
...aw_ostream::write(unsigned char)'
> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> > llvm::cl::parser<std::string> >::getOptionWidth() const':
> > /home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined reference to
> > `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&) const'
> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
> > llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
> > /home/a/llvm/include/llvm/Support/CommandLine.h:1390: undefi...
2016 Mar 25
0
Link error on Linux
...e(unsigned char)'
>> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
>> > llvm::cl::parser<std::string> >::getOptionWidth() const':
>> > /home/a/llvm/include/llvm/Support/CommandLine.h:1387: undefined reference to
>> > `llvm::cl::basic_parser_impl::getOptionWidth(llvm::cl::Option const&) const'
>> > aklo-aklo.o: In function `llvm::cl::list<std::string, bool,
>> > llvm::cl::parser<std::string> >::printOptionInfo(unsigned long) const':
>> > /home/a/llvm/include/llvm/Support/CommandLine.h:...
2015 Oct 08
2
llvm:cl::parser subclasses final in 3.7?
All,
I'm upgrading some code that uses LLVM from 3.6 to 3.7. It looks like the
llvm::cl::parser subclasses are now final?
We had been doing:
struct MaxThreadsParser : public llvm::cl::parser<unsigned> {
bool parse(llvm::cl::Option &O, llvm::StringRef ArgName, llvm::StringRef
Arg,
unsigned &Val);
};
But that's now causing:
In file included from
2015 Mar 04
3
[LLVMdev] Self-hosting failure in ARM again
Folks,
It seems we got the same issue with Clang alignment as before:
http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-selfhost/builds/3025
http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-selfhost-neon/builds/485
http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15-full-sh/builds/118
Commits between 231213 and 231255.
There are a few issues that could have brought it:
*
2012 Jan 20
0
[LLVMdev] CommandLine Manual: Writing a custom parser example broke
...y Manual is broke for 3.0+. This used to work with llvm-2.9.
When I try to compile it I get:
../include/llvm/Support/CommandLine.h:964:20: error: no viable
conversion from 'const FileSizeParser' to 'parser<unsigned>'
I fixed it by changing
struct FileSizeParser : public cl::basic_parser<unsigned> {
to
struct FileSizeParser : public cl::parser<unsigned> {
on 3.0
2009 Feb 07
0
[LLVMdev] 2.5 Pre-release1 available for testing
...lt;No data fields>},
members of llvm::cl::opt<std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>,false,llvm::cl::parser<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >:
Parser = {
<llvm::cl::basic_parser<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >> = {
<llvm::cl::basic_parser_impl> = {
_vptr$basic_parser_impl = 0x15ec58
}, <No data fields>}, <No data fields>}
}
This happens both with and without the bina...
2011 Apr 05
3
[LLVMdev] Building LLVM on Solaris/Sparc
...arallelAssert/llvm-objects/tools/opt/Debug+Asserts/AnalysisWrappers.o
llvm::createFunctionAttrsPass()
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
vtable for llvm::LoopPass
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::cl::basic_parser_impl::printOptionInfo(llvm::cl::Option const&,
unsigned int)
const/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
vtable for llvm::PassNameParser
/n/fs/scratch/tpondich/ParallelAssert/llvm-objects/tools/opt/Debug+Asserts/opt.o
llvm::ScalarEvolution::ScalarEvolut...
2009 Feb 07
11
[LLVMdev] 2.5 Pre-release1 available for testing
LLVMers,
The 2.5 pre-release is available for testing:
http://llvm.org/prereleases/2.5/
If you have time, I'd appreciate anyone who can help test the release.
Please do the following:
1) Download/compile llvm source, and either compile llvm-gcc source or
use llvm-gcc binary (please compile llvm-gcc with fortran if you can).
2) Run make check, send me the testrun.log
3) Run "make