search for: ismyformat

Displaying 13 results from an estimated 13 matches for "ismyformat".

2013 Oct 09
1
[LLVMdev] [lld] Handling a whole bunch of readers
All files cannot be identified with a magic though. For example Linker scripts, and currently YAML files. On 10/9/2013 1:36 PM, Rui Ueyama wrote: > I guess in each isMyFormat(), you would check the given file's magic using > llvm::sys::fs::identify_magic(), and then check if it's a known value for > that reader. That would be repeated in each isMyFormat(), which is not very > good. > > I'd do that using a mapping from file magic to reader. I m...
2013 Oct 09
0
[LLVMdev] [lld] Handling a whole bunch of readers
I guess in each isMyFormat(), you would check the given file's magic using llvm::sys::fs::identify_magic(), and then check if it's a known value for that reader. That would be repeated in each isMyFormat(), which is not very good. I'd do that using a mapping from file magic to reader. I mean, we could call ident...
2013 Oct 09
7
[LLVMdev] [lld] Handling a whole bunch of readers
Hi, We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. Any reader that knows to handle, goes ahead and parses the file. On a side note, we currently use .objtxt as an figure out if the file is a YAML file or not. I have added FIXME's in the code, if we could some kind of magic (or) a better way to figure out if the file is YAML...
2013 Oct 15
3
[LLVMdev] [lld] Handling a whole bunch of readers
...e: > On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org > > wrote: > >> Hi, >> >> We have a whole bunch of readers(we would have some more too), and was >> thinking if we should have a vector of Readers, and have a function >> isMyFormat in each of them. >> >> Any reader that knows to handle, goes ahead and parses the file. >> >> On a side note, we currently use .objtxt as an figure out if the file is >> a YAML file or not. I have added FIXME's in the code, if we could some kind >> of magic (...
2013 Oct 09
2
[LLVMdev] [lld] Handling a whole bunch of readers
On 10/9/2013 3:09 PM, Nick Kledzik wrote: > On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> wrote: >> We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. >> >> Any reader that knows to handle, goes ahead and parses the file. >> >> On a side note, we currently use .objtxt as an figure out if the file is a YAML file or not. I have added FIXME's in the code, if we could some kind of magic (or) a better way t...
2013 Oct 09
0
[LLVMdev] [lld] Handling a whole bunch of readers
On Oct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> wrote: > We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. > > Any reader that knows to handle, goes ahead and parses the file. > > On a side note, we currently use .objtxt as an figure out if the file is a YAML file or not. I have added FIXME's in the code, if we could some kind of magic (or) a better way to figure out i...
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
...ct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org >>> wrote: >>> Hi, >>> >>> We have a whole bunch of readers(we would have some more too), and was >>> thinking if we should have a vector of Readers, and have a function >>> isMyFormat in each of them. >>> >>> Any reader that knows to handle, goes ahead and parses the file. >>> >>> On a side note, we currently use .objtxt as an figure out if the file is >>> a YAML file or not. I have added FIXME's in the code, if we could some kind...
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org>wrote: > Hi, > > We have a whole bunch of readers(we would have some more too), and was > thinking if we should have a vector of Readers, and have a function > isMyFormat in each of them. > > Any reader that knows to handle, goes ahead and parses the file. > > On a side note, we currently use .objtxt as an figure out if the file is a > YAML file or not. I have added FIXME's in the code, if we could some kind > of magic (or) a better way to figu...
2013 Oct 10
0
[LLVMdev] [lld] Handling a whole bunch of readers
...edzik wrote: >> On Oct 9, 2013, at 11:23 AM, Shankar Easwaran >> <shankare at codeaurora.org> wrote: >>> We have a whole bunch of readers(we would have some more too), and >>> was thinking if we should have a vector of Readers, and have a >>> function isMyFormat in each of them. >>> >>> Any reader that knows to handle, goes ahead and parses the file. >>> >>> On a side note, we currently use .objtxt as an figure out if the >>> file is a YAML file or not. I have added FIXME's in the code, if we >>>...
2013 Oct 15
2
[LLVMdev] [lld] Handling a whole bunch of readers
...gt;> shankare at codeaurora.org >>> >>>> wrote: >>>> Hi, >>>> >>>> We have a whole bunch of readers(we would have some more too), and was >>>> thinking if we should have a vector of Readers, and have a function >>>> isMyFormat in each of them. >>>> >>>> Any reader that knows to handle, goes ahead and parses the file. >>>> >>>> On a side note, we currently use .objtxt as an figure out if the file is >>>> a YAML file or not. I have added FIXME's in the code, i...
2013 Oct 15
0
[LLVMdev] [lld] Handling a whole bunch of readers
...t gmail.com>>wrote: On Wed, Oct 9, 2013 at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org<mailto:shankare at codeaurora.org> wrote: Hi, We have a whole bunch of readers(we would have some more too), and was thinking if we should have a vector of Readers, and have a function isMyFormat in each of them. Any reader that knows to handle, goes ahead and parses the file. On a side note, we currently use .objtxt as an figure out if the file is a YAML file or not. I have added FIXME's in the code, if we could some kind of magic (or) a better way to figure out if the file is YAML ?...
2013 Oct 15
1
[LLVMdev] [lld] Handling a whole bunch of readers
...ra.org >>>> >>>>> wrote: >>>>> Hi, >>>>> >>>>> We have a whole bunch of readers(we would have some more too), and was >>>>> thinking if we should have a vector of Readers, and have a function >>>>> isMyFormat in each of them. >>>>> >>>>> Any reader that knows to handle, goes ahead and parses the file. >>>>> >>>>> On a side note, we currently use .objtxt as an figure out if the file >>>>> is >>>>> a YAML file or not...
2013 Oct 10
2
[LLVMdev] [lld] Handling a whole bunch of readers
...ct 9, 2013, at 11:23 AM, Shankar Easwaran <shankare at codeaurora.org> >>> wrote: >>> >>>> We have a whole bunch of readers(we would have some more too), and was >>>> thinking if we should have a vector of Readers, and have a function >>>> isMyFormat in each of them. >>>> >>>> Any reader that knows to handle, goes ahead and parses the file. >>>> >>>> On a side note, we currently use .objtxt as an figure out if the file >>>> is a YAML file or not. I have added FIXME's in the code, i...