[Insight-developers] KWStyle broken

Bill Lorensen bill.lorensen at gmail.com
Mon Feb 9 11:23:20 EST 2009


I just wrote a small program that uses kwsys Glob. It does indeed fail
for glob expressions like:

itk[A-G]*.txx. The problem is in Glob.cxx. It converts the glob
expression to a regular expression.

It converts itk[A-G]*.txx to the regexp itk[A-G][^/]*\.txx which is not correct.

Bill

On Mon, Feb 9, 2009 at 11:14 AM, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
> Hi Brad,
>
> I'm suspecting that this may have been misdiagnosed.
>
> My impression is that the globing actually works when
> the Style check is run from ctest.
>
> That is, when I'm checking style in Code/Common, this
> expression from ITKFiles is actually restricting the
> set of files that get to be checked for Style.
>
> In your email, you say that your file ITKOverwrite.txt
> is the one containing the glob regular expression.
>
> Is that right ?
>
> Shouldn't this expression be in the ITKFiles.txt file ?
>
> The ITKOverwrite.txt file is intended for exceptions
> to the rules.
>
>
> Please let us know,
>
>
>  Thanks
>
>
>     Luis
>
>
>
> ------------------------
> Bradley Lowekamp wrote:
>>
>> Hello all,
>>
>> Did we ever come up with a solution to this problem?
>>
>> I can see it's on the dash board as this is the output of KWStyle:
>>
>> *Build command: *KWStyle
>> *Start Time: *2009-02-08T03:20:54 EST
>> *End Time: *2009-02-08T03:21:06 EST
>>
>> Brad
>>
>>
>> On Feb 4, 2009, at 4:17 PM, Julien Jomier wrote:
>>
>>> It seems that KWSys glob function doesn't recognize the 'itk[A-H]*.txx'
>>> glob expression.
>>>
>>> Julien
>>>
>>> Bradley Lowekamp wrote:
>>>
>>>> Bill,
>>>
>>>>
>>>> I have the lastest CVS version of KWStyle and all the tests for it
>>>
>>>> passed. The file Insight/Utilities/KWStyle/ITKOverwrite.txt contains
>>>
>>>> line like the following:
>>>
>>>>
>>>> /nfs/mead/Users/blowek1/src/Insight/Code/Common/itk[A-H]*.txx
>>>
>>>> /nfs/mead/Users/blowek1/src/Insight/Code/Common/itk[A-H]*.cxx
>>>
>>>> ...
>>>
>>>>
>>>> My KWStyle is ignoring this type of globbing line,  when I swap it with:
>>>
>>>>
>>>> /nfs/mead/Users/blowek1/src/Insight/Code/Common/itk*.h
>>>
>>>>
>>>> it works fine. The cmake configuration file pass this file to KWStyle
>>>
>>>> with the -D argument.
>>>
>>>>
>>>> Brad
>>>
>>>>
>>>>
>>>> On Feb 4, 2009, at 4:02 PM, Bill Lorensen wrote:
>>>
>>>>
>>>>> Brad,
>>>
>>>>>
>>>>> Which file gave the problem?
>>>
>>>>>
>>>>> Bill
>>>
>>>>>
>>>>> On Wed, Feb 4, 2009 at 3:41 PM, Bradley Lowekamp
>>>
>>>>> <blowekamp at mail.nih.gov <mailto:blowekamp at mail.nih.gov>> wrote:
>>>
>>>>>> Hello all,
>>>
>>>>>> I am not sure why but my KWStyle is not able to process the [A-Z]
>>>>>> style
>>>
>>>>>> globbing in ITKFiles.txt. The behavior of KWStyle is to ignore those
>>>
>>>>>> expressions. So the make targets and the test are not really being
>>>
>>>>>> run for
>>>
>>>>>> these targets. Only CVS gave me errors when I tried to check in.
>>>
>>>>>> Brad
>>>
>>>>>>
>> ========================================================
>>
>> Bradley Lowekamp
>> Lockheed Martin Contractor for
>>
>> Office of High Performance Computing and Communications
>>
>> National Library of Medicine
>> blowekamp at mail.nih.gov <mailto:blowekamp at mail.nih.gov>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-developers
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>


More information about the Insight-developers mailing list