VirtualBox

Changeset 76509 in vbox for trunk/src/bldprogs


Ignore:
Timestamp:
Dec 30, 2018 4:57:10 AM (6 years ago)
Author:
vboxsync
Message:

scm/fix-header-guards: Skip all .cpp.h files. Fixed pragma once whitespace expectations. bugref:9344

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bldprogs/scmrw.cpp

    r76506 r76509  
    28562856        return false;
    28572857
     2858    /* always skip .cpp.h files */
     2859    size_t cchFilename = strlen(pState->pszFilename);
     2860    if (   cchFilename > sizeof(".cpp.h")
     2861        && RTStrICmpAscii(&pState->pszFilename[cchFilename - sizeof(".cpp.h") + 1], ".cpp.h") == 0)
     2862        return false;
     2863
    28582864    int rc;
    28592865    bool fRet = false;
     
    29612967    {
    29622968        { RT_STR_TUPLE("#"),                        0, true, false },
    2963         { RT_STR_TUPLE("pragma"),                   0, true, false },
     2969        { RT_STR_TUPLE("pragma"),                   1, true, false },
    29642970        { RT_STR_TUPLE("once"),                     1, true, false},
    29652971        { RT_STR_TUPLE(""),                         0, true, false },
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette