equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of the License "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
514 else if(lineCommentStartPosn == string::npos) |
514 else if(lineCommentStartPosn == string::npos) |
515 { |
515 { |
516 // Valid Block comment, verify that the function name by applying smartfind |
516 // Valid Block comment, verify that the function name by applying smartfind |
517 isvalidlocationforBlock = SmartFind(aFile, aName, blockCommentStartPosn); |
517 isvalidlocationforBlock = SmartFind(aFile, aName, blockCommentStartPosn); |
518 if( (isvalidlocationforBlock == string::npos) || // There is no occurrence of name |
518 if( (isvalidlocationforBlock == string::npos) || // There is no occurrence of name |
519 ((isvalidlocationforBlock > aStartbraceposn) && (isvalidlocationforBlock != string::npos))) // The name exists but that is inside function block |
519 ((isvalidlocationforBlock > aStartbraceposn) && (isvalidlocationforBlock != string::npos))) //// The name exists but that is inside function block |
520 { |
520 { |
521 return true; |
521 return true; |
522 } |
522 } |
523 else |
523 else |
524 { |
524 { |